Skip to content

Commit 91c51d1

Browse files
committed
add ExplicitMPC to precompile calls
1 parent ccd4ba9 commit 91c51d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/precompile_calls.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ sim!(nmpc_skf, 3, [55, 30])
4848

4949
sim!(model, 3)
5050

51+
exmpc = ExplicitMPC(model)
52+
initstate!(exmpc, model.uop, model())
53+
exmpc.estim()
54+
u = exmpc([55, 30])
55+
sim!(exmpc, 3, [55, 30])
56+
5157
f(x,u,_) = model.A*x + model.Bu*u
5258
h(x,_) = model.C*x
5359

0 commit comments

Comments
 (0)