Differentiable Nonlinear Model Predictive Control
Abstract
The efficient computation of parametric solution sensitivities is a key challenge in the integration of learning-enhanced methods with nonlinear model predictive control, as their availability is crucial for many learning algorithms. This paper discusses the computation of solution sensitivities of general nonlinear programs using the implicit function theorem and smoothed optimality conditions treated in interior-point methods (IPM). We introduce sequential barrier quadratic programming (SBQP), which generalizes SQP with an IPM quadratic programming (QP) solver by allowing the barrier parameter to approach a prescribed nonnegative target value, recovering classical SQP when this target is zero. Previous works are limited to convex or unconstrained formulations, or lack an implementation for efficient sensitivity evaluation. The publication is accompanied by an efficient open-source implementation within the `acados` framework, providing both forward and adjoint sensitivities for general optimal control problems, achieving speedups exceeding 3x over the state-of-the-art solvers `mpc.pytorch` and `cvxpygen`.
BibTeX
@inproceedings{frey2026differentiable,
author = {Jonathan Frey and Katrin Baumgärtner and Gianluca Frison and Dirk Reinhardt and Jasper Hoffmann and Leonard Fichtner and Joschka Boedecker and Sebastien Gros and Moritz Diehl},
title = {{Differentiable Nonlinear Model Predictive Control}},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026},
url = {https://openreview.net/forum?id=OgtCRU5ApQ},
}Ask Althea to put this paper to the test.