Skip to content

Commit 5b1b90c

Browse files
committed
test: larger Ts in NonLinMPC set model to avoid time limits in CI
1 parent 4ae6b07 commit 5b1b90c

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
@@ -854,7 +854,7 @@ end
854854
end
855855

856856
@testset "NonLinMPC set model" begin
857-
estim = KalmanFilter(setop!(LinModel(tf(5, [2, 1]), 3), yop=[10], uop=[1]))
857+
estim = KalmanFilter(setop!(LinModel(tf(5, [200, 1]), 300), yop=[10], uop=[1]))
858858
mpc = NonLinMPC(estim, Nwt=[0], Cwt=1e4, Hp=1000, Hc=1)
859859
mpc = setconstraint!(mpc, umin=[-24], umax=[26])
860860
mpc = setconstraint!(mpc, ymin=[-54], ymax=[56])
@@ -868,7 +868,7 @@ end
868868
preparestate!(mpc, [10])
869869
u = moveinput!(mpc, r)
870870
@test u [2] atol=1e-2
871-
setmodel!(mpc, setop!(LinModel(tf(5, [2, 1]), 3), yop=[20], uop=[11]))
871+
setmodel!(mpc, setop!(LinModel(tf(5, [200, 1]), 300), yop=[20], uop=[11]))
872872
@test mpc.Yop fill(20.0, 1000)
873873
@test mpc.Uop fill(11.0, 1000)
874874
@test mpc.con.U0min fill(-24.0 - 1 + 1 - 11, 1000)
@@ -878,7 +878,7 @@ end
878878
r = [40]
879879
u = moveinput!(mpc, r)
880880
@test u [15] atol=1e-2
881-
setmodel!(mpc, setop!(LinModel(tf(10, [2, 1]), 3), yop=[20], uop=[11]))
881+
setmodel!(mpc, setop!(LinModel(tf(10, [200, 1]), 300), yop=[20], uop=[11]))
882882
r = [40]
883883
u = moveinput!(mpc, r)
884884
@test u [13] atol=1e-2

0 commit comments

Comments
 (0)