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.
2 parents ec90212 + c8f2f93 commit 92eec87Copy full SHA for 92eec87
Project.toml
@@ -1,6 +1,6 @@
1
name = "ModelPredictiveControl"
2
uuid = "61f9bdb8-6ae4-484a-811f-bbf86720c31c"
3
-version = "1.11.1"
+version = "1.12.0"
4
authors = ["Francis Gagnon"]
5
6
[deps]
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