Skip to content

Commit d31fd15

Browse files
format
1 parent 7e763ec commit d31fd15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/OptimizationNOMAD/src/OptimizationNOMAD.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ function SciMLBase.__solve(prob::OptimizationProblem, opt::NOMADOpt;
9797
if prob.f.cons === nothing
9898
opt_setup = NOMAD.NomadProblem(length(prob.u0), 1, ["OBJ"], bb; bounds...)
9999
else
100-
opt_setup = NOMAD.NomadProblem(length(prob.u0), 1+length(prob.ucons), vcat("OBJ", fill(strcnsmethod(cons_method), length(prob.ucons))), bbcons; bounds...)
100+
opt_setup = NOMAD.NomadProblem(length(prob.u0), 1 + length(prob.ucons),
101+
vcat("OBJ", fill(strcnsmethod(cons_method), length(prob.ucons))),
102+
bbcons; bounds...)
101103
end
102104

103105
__map_optimizer_args!(prob, opt_setup, maxiters = maxiters, maxtime = maxtime,

0 commit comments

Comments
 (0)