Skip to content

Commit 6e2ef10

Browse files
committed
debug
1 parent c37e3d8 commit 6e2ef10

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/controller/execute.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,11 @@ end
710710
function setmodel_controller!(mpc::PredictiveController, x̂op_old)
711711
estim, model = mpc.estim, mpc.estim.model
712712
nu, ny, nd, Hp, Hc = model.nu, model.ny, model.nd, mpc.Hp, mpc.Hc
713-
optim, con = mpc.optim, mpc.con
713+
transcription, optim, con = mpc.transcription, mpc.optim, mpc.con
714714
# --- predictions matrices ---
715-
E, G, J, K, V, B, ex̂, gx̂, jx̂, kx̂, vx̂, bx̂ = init_predmat(estim, model, Hp, Hc)
715+
E, G, J, K, V, B, ex̂, gx̂, jx̂, kx̂, vx̂, bx̂ = init_predmat(
716+
estim, model, Hp, Hc, transcription
717+
)
716718
A_Ymin, A_Ymax, Ẽ = relaxŶ(model, mpc.nϵ, con.C_ymin, con.C_ymax, E)
717719
A_x̂min, A_x̂max, ẽx̂ = relaxterminal(model, mpc.nϵ, con.c_x̂min, con.c_x̂max, ex̂)
718720
mpc.Ẽ .=

0 commit comments

Comments
 (0)