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.
oracle
NonLinMPC
MovingHorizonEstimator
1 parent ec90212 commit 7c2a8c9Copy full SHA for 7c2a8c9
src/controller/construct.jl
@@ -439,8 +439,7 @@ function setconstraint!(
439
JuMP.delete(optim, optim[:linconstraint])
440
JuMP.unregister(optim, :linconstraint)
441
@constraint(optim, linconstraint, A*Z̃var .≤ b)
442
- g_oracle, geq_oracle = get_nonlinops(mpc, optim)
443
- set_nonlincon!(mpc, optim, g_oracle, geq_oracle)
+ reset_nonlincon!(mpc)
444
else
445
i_b, i_g = init_matconstraint_mpc(
446
model, transcription, nc,
@@ -454,11 +453,8 @@ function setconstraint!(
454
453
return mpc
455
end
456
457
-"By default, no nonlinear operators, return 3 nothing"
458
-get_nonlinops(::PredictiveController, _ ) = (nothing, nothing, nothing)
459
-
460
"By default, no nonlinear constraints, return nothing."
461
-set_nonlincon!(::PredictiveController, _ , _ , _ ) = nothing
+reset_nonlincon!(::PredictiveController) = nothing
462
463
"""
464
default_Hp(model::LinModel)
0 commit comments