Skip to content

Commit 30b2e4d

Browse files
committed
debug: NonLinMPC with LinModel and custom constraints now works
1 parent 711e286 commit 30b2e4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/transcription.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ function init_nonlincon!(
624624
for i in 1:con.nc
625625
name = Symbol("g_c_$i")
626626
optim[name] = JuMP.add_nonlinear_operator(
627-
optim, nZ̃, gfuncs[i_base+i]; name
627+
optim, nZ̃, gfuncs[i_base+i], ∇gfuncs![i_base+i]; name
628628
)
629629
end
630630
end

0 commit comments

Comments
 (0)