Skip to content

Commit a9ca10d

Browse files
committed
test: OrthogonalCollocation with h=1
1 parent e3a9e22 commit a9ca10d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/3_test_predictive_control.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -997,13 +997,13 @@ end
997997
@test u [1.0] atol=5e-2
998998

999999
transcription = OrthogonalCollocation(0, 4)
1000-
nmpc6 = NonLinMPC(InternalModel(nonlinmodel_c); Nwt=[0], Hp=100, Hc=1, transcription)
1000+
nmpc6 = NonLinMPC(nonlinmodel_c; Nwt=[0], Hp=100, Hc=1, transcription)
10011001
preparestate!(nmpc6, [0.0])
10021002
u = moveinput!(nmpc6, [1/0.001])
10031003
@test u [1.0] atol=5e-2
10041004

1005-
transcription = OrthogonalCollocation(roots=:gausslegendre)
1006-
nmpc6_1 = NonLinMPC(InternalModel(nonlinmodel_c); Nwt=[0], Hp=100, Hc=1, transcription)
1005+
transcription = OrthogonalCollocation(1, roots=:gausslegendre)
1006+
nmpc6_1 = NonLinMPC(nonlinmodel_c; Nwt=[0], Hp=100, Hc=1, transcription)
10071007
preparestate!(nmpc6_1, [0.0])
10081008
u = moveinput!(nmpc6_1, [1/0.001])
10091009
@test u [1.0] atol=5e-2

0 commit comments

Comments
 (0)