Skip to content

Commit df1bb37

Browse files
committed
test: improve coverage
1 parent eb92527 commit df1bb37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/3_test_predictive_control.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,8 @@ end
730730
@test nmpc18.gradient == AutoFiniteDiff()
731731
@test nmpc18.jacobian == AutoFiniteDiff()
732732
@test nmpc18.hessian == AutoFiniteDiff()
733-
nmpc19 = NonLinMPC(nonlinmodel, Hc=1, Hp=10, Cwt=Inf,
733+
nonlinmodel_simple = NonLinModel((x,u,_,_)->x+u,(x,_,_)->x, 1, 1, 1, 1, solver=nothing)
734+
nmpc19 = NonLinMPC(nonlinmodel_simple, Hc=1, Hp=10, Cwt=Inf,
734735
hessian=SecondOrder(AutoForwardDiff(), AutoForwardDiff())
735736
)
736737
@test nmpc19.hessian == SecondOrder(AutoForwardDiff(), AutoForwardDiff())

0 commit comments

Comments
 (0)