Skip to content

Commit de25fcf

Browse files
committed
debug: new exp. set only for NonLinMPC
1 parent e2afbe6 commit de25fcf

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
@@ -538,8 +538,9 @@ function init_optimization!(
538538
return nothing
539539
end
540540

541+
set_nonlincon!(::PredictiveController, _ ) = nothing
541542
# TODO: cleanup this function, this is super dirty
542-
function set_nonlincon_exp(mpc::PredictiveController, optim::JuMP.GenericModel{JNT}) where JNT<:Real
543+
function set_nonlincon_exp(mpc::NonLinMPC, optim::JuMP.GenericModel{JNT}) where JNT<:Real
543544
# ========= Test new experimental feature ========================================
544545

545546
nonlin_constraints = JuMP.all_constraints(optim, JuMP.Vector{JuMP.VariableRef}, Ipopt._VectorNonlinearOracle)

0 commit comments

Comments
 (0)