English

Code Generation and Conic Constraints for Model-Predictive Control on Microcontrollers with Conic-TinyMPC

Robotics 2026-05-11 v3 Systems and Control Systems and Control Optimization and Control

Abstract

Model-predictive control (MPC) is a state-of-the-art control method for constrained robotic systems, yet deployment on resource-limited hardware remains difficult. This challenge is magnified by expressive conic constraints, which offer greater modeling power but require significantly more computation than linear alternatives. To address this challenge, we extend recent work developing fast, structure-exploiting, cached solvers for embedded applications based on the Alternating Direction Method of Multipliers (ADMM) to provide support for second-order cones, as well as C++ code generation from Python, MATLAB, and Julia. Microcontroller benchmarks show that our solver provides up to a two-order-of-magnitude speedup, ranging from 10.6x to 142.7x, over state-of-the-art embedded solvers on QP and SOCP problems, and enables us to fit order-of-magnitude larger problems in memory. We validate our solver's deployed performance through simulation and hardware experiments, including trajectory tracking with conic constraints on a 27g Crazyflie quadrotor. Our open-source code is available at https://tinympc.org.

Keywords

Cite

@article{arxiv.2403.18149,
  title  = {Code Generation and Conic Constraints for Model-Predictive Control on Microcontrollers with Conic-TinyMPC},
  author = {Ishaan Mahajan and Khai Nguyen and Sam Schoedel and Elakhya Nedumaran and Moises Mata and Brian Plancher and Zachary Manchester},
  journal= {arXiv preprint arXiv:2403.18149},
  year   = {2026}
}

Comments

Accepted to ICRA 2026. 4 Figures. 2 Tables. First three authors contributed equally

R2 v1 2026-06-28T15:34:52.460Z