Skip to content

Commit c4a2c6d

Browse files
committed
test:NonLinMPC, MultipleShooting, construction
1 parent 60e98c5 commit c4a2c6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/3_test_predictive_control.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,12 @@ end
8686
preparestate!(mpc4, [0])
8787
moveinput!(mpc4, [0]) [0.0]
8888
@test_nowarn ModelPredictiveControl.info2debugstr(info)
89-
mpc5 = LinMPC(linmodel, Hp=100, Hc=10, transcription=MultipleShooting())
89+
mpc5 = LinMPC(linmodel, Hp=1000, Hc=10, transcription=MultipleShooting())
9090
preparestate!(mpc5, [0])
91-
moveinput!(mpc5, [1]) [0.2]
91+
u = moveinput!(mpc5, [1])
92+
@test u [0.2]
93+
# info = getinfo(mpc5)
94+
# info[:u] ≈ [0.2]
9295

9396
@test_throws DimensionMismatch moveinput!(mpc1, [0,0,0])
9497
@test_throws DimensionMismatch moveinput!(mpc1, [0], [0,0])

0 commit comments

Comments
 (0)