Skip to content

Commit d244194

Browse files
committed
debug: jacobian matrix with ngi lines
1 parent 9268403 commit d244194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/nonlinmpc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ function get_nonlinops(mpc::NonLinMPC, ::JuMP.GenericModel{JNT}) where JNT<:Real
766766
Cache(gc), Cache(geq), Cache(g)
767767
)
768768
∇gi_prep = prepare_jacobian(gi!, gi, jac, Z̃_∇gi, ∇gi_context...; strict)
769-
∇gi = init_diffmat(JNT, jac, ∇gi_prep, nZ̃, ng)
769+
∇gi = init_diffmat(JNT, jac, ∇gi_prep, nZ̃, ngi)
770770
function update_con!(gi, ∇gi, Z̃_∇gi, Z̃_arg)
771771
if isdifferent(Z̃_arg, Z̃_∇gi)
772772
Z̃_∇gi .= Z̃_arg

0 commit comments

Comments
 (0)