We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LinMPC
MultipleShooting
1 parent d889314 commit a868fc4Copy full SHA for a868fc4
test/3_test_predictive_control.jl
@@ -36,6 +36,10 @@
36
mpc13 = LinMPC(model2)
37
@test isa(mpc13, LinMPC{Float32})
38
@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.nϵ
42
+ @test size(mpc14.con.Aeq, 1) == mpc14.estim.nx̂*mpc14.Hp
43
44
@test_logs(
45
(:warn,
0 commit comments