We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bf7dc0 commit 86f0f34Copy full SHA for 86f0f34
lib/OptimizationNLopt/src/OptimizationNLopt.jl
@@ -30,7 +30,7 @@ end
30
31
function SciMLBase.requiresconsjac(opt::Union{NLopt.Algorithm, NLopt.Opt})
32
# https://github.com/JuliaOpt/NLopt.jl/blob/master/src/NLopt.jl#L18C7-L18C16
33
- string(opt isa NLopt.Algorithm ? opt : opt.algorithm)
+ str_opt = string(opt isa NLopt.Algorithm ? opt : opt.algorithm)
34
return str_opt[3] ∈ ['O', 'I'] || str_opt[5] == 'G'
35
end
36
0 commit comments