Skip to content

Commit c8f2f93

Browse files
committed
test: improve coverage for oracle=false
1 parent 8a0fce4 commit c8f2f93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/3_test_predictive_control.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,8 @@ end
10351035
([0.21,0.22,0.23,0.24,0.25,0.26], [0.31,0.32,0.33,0.34,0.35,0.36]))
10361036

10371037
# TODO: delete these tests when the deprecated legacy splatting syntax will be.
1038+
nmpc_lin_leg = NonLinMPC(linmodel1, Hp=1, Hc=1, oracle=false)
1039+
nmpc_ms_leg = NonLinMPC(nonlinmodel, Hp=1, Hc=1, oracle=false, transcription=MultipleShooting())
10381040
nmpc_leg = NonLinMPC(nonlinmodel, Hp=1, Hc=1, oracle=false)
10391041

10401042
setconstraint!(nmpc_leg, umin=[-5, -9.9], umax=[100,99])

0 commit comments

Comments
 (0)