Skip to content

Commit 86f0f34

Browse files
Update OptimizationNLopt.jl
1 parent 5bf7dc0 commit 86f0f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OptimizationNLopt/src/OptimizationNLopt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ end
3030

3131
function SciMLBase.requiresconsjac(opt::Union{NLopt.Algorithm, NLopt.Opt})
3232
# https://github.com/JuliaOpt/NLopt.jl/blob/master/src/NLopt.jl#L18C7-L18C16
33-
string(opt isa NLopt.Algorithm ? opt : opt.algorithm)
33+
str_opt = string(opt isa NLopt.Algorithm ? opt : opt.algorithm)
3434
return str_opt[3] ['O', 'I'] || str_opt[5] == 'G'
3535
end
3636

0 commit comments

Comments
 (0)