Skip to content

Commit d66a321

Browse files
Merge pull request #857 from SciML/Vaibhavdixit02-patch-1
More conditionals for not calculating hessian in NLopt
2 parents 2bab653 + 42474ca commit d66a321

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
@@ -44,7 +44,7 @@ function SciMLBase.requireshessian(opt::Union{NLopt.Algorithm, NLopt.Opt}) #http
4444
string(opt.algorithm)
4545
end
4646

47-
if str_opt[2] == 'N'
47+
if str_opt[2] == 'N' || occursin("LD_LBFGS", str_opt) || occursin("LD_SLSQP", str_opt)
4848
return false
4949
else
5050
return true

0 commit comments

Comments
 (0)