Skip to content

Commit

Permalink
More conditionals for not calculating hessian in NLopt
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Nov 18, 2024
1 parent 2bab653 commit 6d19cef
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 6d19cef

Please sign in to comment.