We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mpc.optim
1 parent 4269e90 commit 3640db7Copy full SHA for 3640db7
src/controller/nonlinmpc.jl
@@ -667,7 +667,7 @@ function init_nonlincon!(
667
Z̃var = optim[:Z̃var]
668
for i in 1:con.neq
669
name = Symbol("geq_$i")
670
- geqfunc_i = JuMP.add_nonlinear_operator(optim, nZ̃, geqfuncs[i]; name)
+ geqfunc_i = optim[name] = JuMP.add_nonlinear_operator(optim, nZ̃, geqfuncs[i]; name)
671
# set with @constrains here instead of set_nonlincon!, since the number of nonlinear
672
# equality constraints is known and constant (±Inf are impossible):
673
@constraint(optim, geqfunc_i(Z̃var...) == 0)
0 commit comments