Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed82008 committed Apr 13, 2022
1 parent 56cdf8d commit 31ca3f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NonconvexNLopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ function get_nlopt_problem(algorithm, local_optimizer, options, obj, ineq_constr
if local_optimizer !== nothing
subproblem = NLopt.Opt(local_optimizer, length(x0))
foreach(keys(options.nt.suboptions.nt)) do _k
setproperty!(subproblem, _k, options.nt.suboptions.nt[_k])
if _k !== :suboptions
setproperty!(subproblem, _k, options.nt.suboptions.nt[_k])
end
end
NLopt.local_optimizer!(problem, subproblem)
end
Expand Down

0 comments on commit 31ca3f6

Please sign in to comment.