Skip to content

Commit

Permalink
Merge pull request #857 from SciML/Vaibhavdixit02-patch-1
Browse files Browse the repository at this point in the history
More conditionals for not calculating hessian in NLopt
  • Loading branch information
Vaibhavdixit02 authored Nov 19, 2024
2 parents 2bab653 + 42474ca commit d66a321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OptimizationNLopt/src/OptimizationNLopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function SciMLBase.requireshessian(opt::Union{NLopt.Algorithm, NLopt.Opt}) #http
string(opt.algorithm)
end

if str_opt[2] == 'N'
if str_opt[2] == 'N' || occursin("LD_LBFGS", str_opt) || occursin("LD_SLSQP", str_opt)
return false
else
return true
Expand Down

0 comments on commit d66a321

Please sign in to comment.