Skip to content

Commit c41a8eb

Browse files
committed
bench: adding @benchmarkable entries
1 parent 54ee2b3 commit c41a8eb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

benchmark/3_bench_predictive_control.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,16 +461,31 @@ CASE_MPC["Pendulum"]["NonLinMPC"]["Economic"]["Ipopt"]["SingleShooting"] =
461461
sim!($empc_ipopt_ss, $N, $ry; plant=$plant2, x_0=$x_0, x̂_0=$x̂_0, progress=false),
462462
samples=samples, evals=evals, seconds=seconds
463463
)
464+
CASE_MPC["Pendulum"]["NonLinMPC"]["Economic"]["Ipopt"]["SingleShooting (Hessian)"] =
465+
@benchmarkable(
466+
sim!($empc_ipopt_ss_hess, $N, $ry; plant=$plant2, x_0=$x_0, x̂_0=$x̂_0, progress=false),
467+
samples=samples, evals=evals, seconds=seconds
468+
)
464469
CASE_MPC["Pendulum"]["NonLinMPC"]["Economic"]["Ipopt"]["MultipleShooting"] =
465470
@benchmarkable(
466471
sim!($empc_ipopt_ms, $N, $ry; plant=$plant2, x_0=$x_0, x̂_0=$x̂_0, progress=false),
467472
samples=samples, evals=evals, seconds=seconds
468473
)
474+
CASE_MPC["Pendulum"]["NonLinMPC"]["Economic"]["Ipopt"]["MultipleShooting (Hessian)"] =
475+
@benchmarkable(
476+
sim!($empc_ipopt_ms_hess, $N, $ry; plant=$plant2, x_0=$x_0, x̂_0=$x̂_0, progress=false),
477+
samples=samples, evals=evals, seconds=seconds
478+
)
469479
CASE_MPC["Pendulum"]["NonLinMPC"]["Economic"]["Ipopt"]["TrapezoidalCollocation"] =
470480
@benchmarkable(
471481
sim!($empc_ipopt_tc, $N, $ry; plant=$plant2, x_0=$x_0, x̂_0=$x̂_0, progress=false),
472482
samples=samples, evals=evals, seconds=seconds
473483
)
484+
CASE_MPC["Pendulum"]["NonLinMPC"]["Economic"]["Ipopt"]["TrapezoidalCollocation (Hessian)"] =
485+
@benchmarkable(
486+
sim!($empc_ipopt_tc_hess, $N, $ry; plant=$plant2, x_0=$x_0, x̂_0=$x̂_0, progress=false),
487+
samples=samples, evals=evals, seconds=seconds
488+
)
474489
CASE_MPC["Pendulum"]["NonLinMPC"]["Economic"]["MadNLP"]["SingleShooting"] =
475490
@benchmarkable(
476491
sim!($empc_madnlp_ss, $N, $ry; plant=$plant2, x_0=$x_0, x̂_0=$x̂_0, progress=false),

0 commit comments

Comments
 (0)