Skip to content

Commit 65957c2

Browse files
committed
test: debug test
1 parent b38eec4 commit 65957c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/3_test_predictive_control.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,13 +1475,11 @@ end
14751475

14761476
@testitem "LinMPC v.s. NonLinMPC with move blocking" setup=[SetupMPCtests] begin
14771477
using .SetupMPCtests, ControlSystemsBase, LinearAlgebra
1478-
linmodel = setop!(LinModel(sys,Ts,i_d=[3]), uop=[10,50], yop=[50,30], dop=[20])
14791478
G = tf( 10, [400, 1])
1480-
Ts = 100.0
1481-
linmodel = LinModel(G, Ts)
1479+
linmodel = LinModel(G, 100.0)
14821480
f = (x, u, _, p) -> p.A * x + p.Bu * u
14831481
h = (x, _, p) -> p.C * x
1484-
nonlinmodel = NonLinModel(f, h, Ts, 1, 1, 1, p=linmodel, solver=nothing)
1482+
nonlinmodel = NonLinModel(f, h, 100.0, 1, 1, 1, p=linmodel, solver=nothing)
14851483
Mwt, Nwt, Hp, Hc = [1], [0], 30, [1, 2, 3, 24]
14861484
N = 25
14871485
mpc1 = LinMPC(linmodel; Mwt, Nwt, Hp, Hc, transcription=SingleShooting())

0 commit comments

Comments
 (0)