Skip to content

Commit a119545

Browse files
committed
debug test LinMPC
1 parent 15412de commit a119545

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_predictive_control.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ sys = [ tf(1.90,[18.0,1]) tf(1.90,[18.0,1]) tf(1.90,[18.0,1]);
77
model = LinModel(sys, Ts, i_d=[3])
88
mpc1 = LinMPC(model, Hp=15)
99
@test isa(mpc1.estim, SteadyKalmanFilter)
10-
@test size(mpc1.Ẽ,1) == 15*mpc1.model.ny
10+
@test size(mpc1.Ẽ,1) == 15*mpc1.estim.model.ny
1111

1212
mpc2 = LinMPC(model, Hc=4, Cwt=Inf)
13-
@test size(mpc2.Ẽ,2) == 4*mpc2.model.nu
13+
@test size(mpc2.Ẽ,2) == 4*mpc2.estim.model.nu
1414

1515
mpc3 = LinMPC(model, Hc=4, Cwt=1e5)
16-
@test size(mpc3.Ẽ,2) == 4*mpc3.model.nu + 1
16+
@test size(mpc3.Ẽ,2) == 4*mpc3.estim.model.nu + 1
1717

1818
kf = KalmanFilter(model)
1919
mpc4 = LinMPC(kf)

0 commit comments

Comments
 (0)