Skip to content

Commit a868fc4

Browse files
committed
test: LinMPC construction test with MultipleShooting
1 parent d889314 commit a868fc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/3_test_predictive_control.jl

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
mpc13 = LinMPC(model2)
3737
@test isa(mpc13, LinMPC{Float32})
3838
@test isa(mpc13.optim, JuMP.GenericModel{Float64}) # OSQP does not support Float32
39+
mpc14 = LinMPC(model2, transcription=MultipleShooting())
40+
@test mpc14.transcription == MultipleShooting()
41+
@test length(mpc14.Z̃) == model2.nu*mpc14.Hc + mpc14.estim.nx̂*mpc14.Hp + mpc14.
42+
@test size(mpc14.con.Aeq, 1) == mpc14.estim.nx̂*mpc14.Hp
3943

4044
@test_logs(
4145
(:warn,

0 commit comments

Comments
 (0)