Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ModelPredictiveControl"
uuid = "61f9bdb8-6ae4-484a-811f-bbf86720c31c"
version = "1.11.1"
version = "1.12.0"
authors = ["Francis Gagnon"]

[deps]
Expand Down
8 changes: 2 additions & 6 deletions src/controller/construct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,7 @@ function setconstraint!(
JuMP.delete(optim, optim[:linconstraint])
JuMP.unregister(optim, :linconstraint)
@constraint(optim, linconstraint, A*Z̃var .≤ b)
g_oracle, geq_oracle = get_nonlinops(mpc, optim)
set_nonlincon!(mpc, optim, g_oracle, geq_oracle)
reset_nonlincon!(mpc)
else
i_b, i_g = init_matconstraint_mpc(
model, transcription, nc,
Expand All @@ -454,11 +453,8 @@ function setconstraint!(
return mpc
end

"By default, no nonlinear operators, return 3 nothing"
get_nonlinops(::PredictiveController, _ ) = (nothing, nothing, nothing)

"By default, no nonlinear constraints, return nothing."
set_nonlincon!(::PredictiveController, _ , _ , _ ) = nothing
reset_nonlincon!(::PredictiveController) = nothing

"""
default_Hp(model::LinModel)
Expand Down
Loading
Loading