@@ -25,6 +25,12 @@ UNIT_MPC["LinMPC"]["moveinput!"]["MultipleShooting"] =
2525 setup= preparestate! ($ linmpc_ms, $ y, $ d),
2626 samples= samples, evals= evals, seconds= seconds
2727 )
28+ UNIT_MPC[" LinMPC" ][" getinfo!" ] =
29+ @benchmarkable (
30+ getinfo ($ linmpc_ss),
31+ setup= (preparestate! ($ linmpc_ss, $ y, $ d); moveinput! ($ linmpc_ss, $ y, $ d)),
32+ samples= samples, evals= evals, seconds= seconds
33+ )
2834
2935empc = ExplicitMPC (linmodel, Mwt= [1 , 1 ], Nwt= [0.1 , 0.1 ], Lwt= [0.1 , 0.1 ], Hp= 10 )
3036
@@ -76,6 +82,12 @@ UNIT_MPC["NonLinMPC"]["moveinput!"]["LinModel"]["MultipleShooting"] =
7682 setup= preparestate! ($ nmpc_lin_ms, $ y, $ d),
7783 samples= samples, evals= evals, seconds= seconds
7884 )
85+ UNIT_MPC[" NonLinMPC" ][" getinfo!" ][" LinModel" ] =
86+ @benchmarkable (
87+ getinfo ($ nmpc_lin_ss),
88+ setup= (preparestate! ($ nmpc_lin_ss, $ y, $ d); moveinput! ($ nmpc_lin_ss, $ y, $ d)),
89+ samples= samples, evals= evals, seconds= seconds
90+ )
7991UNIT_MPC[" NonLinMPC" ][" moveinput!" ][" NonLinModel" ][" SingleShooting" ] =
8092 @benchmarkable (
8193 moveinput! ($ nmpc_nonlin_ss, $ y, $ d),
@@ -106,6 +118,12 @@ UNIT_MPC["NonLinMPC"]["moveinput!"]["NonLinModel"]["TrapezoidalCollocation"] =
106118 setup= preparestate! ($ nmpc_nonlin_tc, $ y_c, $ d_c),
107119 samples= samples, evals= evals, seconds= seconds
108120 )
121+ UNIT_MPC[" NonLinMPC" ][" getinfo!" ][" NonLinModel" ] =
122+ @benchmarkable (
123+ getinfo ($ nmpc_nonlin_ss),
124+ setup= (preparestate! ($ nmpc_nonlin_ss, $ y, $ d); moveinput! ($ nmpc_nonlin_ss, $ y, $ d)),
125+ samples= samples, evals= evals, seconds= seconds
126+ )
109127
110128# # ----------------------------------------------------------------------------------------
111129# # ---------------------- CASE STUDIES ----------------------------------------------------
0 commit comments