Skip to content

Commit 78886db

Browse files
committed
test: improve coverage
1 parent 3686161 commit 78886db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/3_test_predictive_control.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ end
848848
@test info[:u] u
849849
@test info[:Ŷ][end] 10 atol=5e-2
850850
transcription = MultipleShooting(f_threads=true, h_threads=true)
851-
nmpc8t = NonLinMPC(nonlinmodel; Nwt=[0], Hp=100, Hc=1, transcription)
851+
nmpc8t = NonLinMPC(nonlinmodel; Nwt=[0], Hp=100, Hc=1, transcription, hessian=true)
852852
nmpc8t = setconstraint!(nmpc8t, ymax=[100], ymin=[-100]) # coverage of getinfo! Hessians of Lagrangian
853853
preparestate!(nmpc8t, [0], [0])
854854
u = moveinput!(nmpc8t, [10], [0])

0 commit comments

Comments
 (0)