电气工程与系统科学 > 系统与控制
[提交于 2026年10月30日]
标题:Scaly: an Optimizing Compiler for Optimal Control
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present Scaly, an open-source optimizing compiler for optimal control, written in Python, that generates fast C code. Scaly provides a modeling language embedded in Python for the parametric optimization problems that arise in model predictive control and moving horizon estimation, and computes the sparse derivatives that standard optimization solvers need. Scaly accepts general nonlinear programs but applies optimizations specific to optimal control, which preserve the repeated structure of a problem, such as the stages of a horizon, through differentiation down to the generated loops. The generated C depends only on the C math library and never allocates memory dynamically. On three benchmark problems, Scaly evaluates the Hessian of the Lagrangian up to 26 times faster than CasADi, with smaller binaries and build times that stay nearly constant with the horizon. With the same solver, Scaly shortens the solver time per control step on every benchmark, by a factor of up to 9.
提交历史
来自:Tudor Andrei Oancea[v1] 2026年10月30日 星期五 14:03:35 UTC (75 KB)