Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Sep 11, 2024
1 parent 7e763ec commit d31fd15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/OptimizationNOMAD/src/OptimizationNOMAD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ function SciMLBase.__solve(prob::OptimizationProblem, opt::NOMADOpt;
if prob.f.cons === nothing
opt_setup = NOMAD.NomadProblem(length(prob.u0), 1, ["OBJ"], bb; bounds...)
else
opt_setup = NOMAD.NomadProblem(length(prob.u0), 1+length(prob.ucons), vcat("OBJ", fill(strcnsmethod(cons_method), length(prob.ucons))), bbcons; bounds...)
opt_setup = NOMAD.NomadProblem(length(prob.u0), 1 + length(prob.ucons),
vcat("OBJ", fill(strcnsmethod(cons_method), length(prob.ucons))),
bbcons; bounds...)
end

__map_optimizer_args!(prob, opt_setup, maxiters = maxiters, maxtime = maxtime,
Expand Down

0 comments on commit d31fd15

Please sign in to comment.