Backend
Scaly: an Optimizing Compiler for Optimal Control
arXiv eess.SY0 views
arXiv:2610.41762v1 Announce Type: new Abstract: 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.
Source:https://arxiv.org/abs/2610.41762PreviousProbability-Layer Clustering for Bound-and-Budget Calibration in Multi-Bound Robust Bidding of Renewable-Based Virtual Power PlantsNextSafe Planning for Black-Box Systems via MAP Inference with Truncated Diffusion Priors and CBF-Informed Gibbs Likelihoods
Related posts

Discord is about to get way, way faster on your Android phone
09to5Google
Six Serving Engines on One EC2 G6: Gemma 4 E2B on an NVIDIA L4
0dev.to
The 12-second 'up next' countdown in my 1.17 MB player: auto-advance without the annoyance
0dev.to

Building Polymarket Trading Bot: From Backtesting to Live Trading(Market Maker)
0dev.to
How to design MCP tools for agents
0dev.to
I Launched Aharon Cloud: An Israeli SMS API with Webhooks and Node.js
0dev.to