Skip to content

Commit 4772323

Browse files
committed
debug: assign ∇²Jfunc! to nothing for now
1 parent 18a75ab commit 4772323

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controller/nonlinmpc.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ function get_optim_functions(mpc::NonLinMPC, ::JuMP.GenericModel{JNT}) where JNT
639639
return ∇J # multivariate syntax, see JuMP.@operator doc
640640
end
641641
end
642+
∇²Jfunc! = nothing
642643
# --------------------- inequality constraint functions -------------------------------
643644
gfuncs = Vector{Function}(undef, ng)
644645
for i in eachindex(gfuncs)
@@ -733,7 +734,7 @@ function get_optim_functions(mpc::NonLinMPC, ::JuMP.GenericModel{JNT}) where JNT
733734
end
734735
∇geqfuncs![i] = ∇geqfuncs_i!
735736
end
736-
return Jfunc, ∇Jfunc!, gfuncs, ∇gfuncs!, geqfuncs, ∇geqfuncs!
737+
return Jfunc, ∇Jfunc!, ∇²Jfunc!, gfuncs, ∇gfuncs!, geqfuncs, ∇geqfuncs!
737738
end
738739

739740
"""

0 commit comments

Comments
 (0)