# Differentiable Nonlinear Model Predictive Control

*Jonathan Frey, Katrin Baumgärtner, Gianluca Frison, Dirk Reinhardt, Jasper Hoffmann, Leonard Fichtner, Joschka Boedecker, Sebastien Gros, Moritz Diehl*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153003) · [OpenReview](https://openreview.net/forum?id=OgtCRU5ApQ) · [alphaXiv](https://www.alphaxiv.org/abs/2505.01353) · [Open on the map](../papers.html#p153003)

Category: [Optimization & Federated Learning](../pcat/13.md) › [Differentiable Optimization](../pgroup/135.md) · Type: new method · Keywords: nonlinear model predictive control, solution sensitivities, implicit function theorem, interior-point methods, sequential quadratic programming, optimal control

Areas: [Optimization & Algorithms](../areas/optimization.md) › Optimization Dynamics › Differentiable Optimization

## Summary
Differentiable Nonlinear Model Predictive Control provides an efficient method to compute parametric solution sensitivities for general nonlinear optimal control problems using the implicit function theorem and interior-point methods, achieving over 3× speedups over existing solvers.

## Explained to a 5-year-old
We want to help computers make decisions that change over time, like driving a car. To make these decisions better, we need to know how small changes affect the results. The paper creates a new way to calculate these effects quickly, so computers can learn faster and work more efficiently. It also shares this tool for free so others can use it. This helps people build smarter robots and automated systems.

## Explained to a 5-year-old, longer
Sometimes computers need to plan a sequence of actions, like a robot moving to a spot. To decide what to do, they solve a big math problem that finds the best actions. When the situation changes a little, we would like to know how the best actions also change. Doing this quickly is hard, especially when the math problem is complicated. The paper looks at a special kind of math problem used in robot planning called nonlinear model predictive control. It uses a mathematical rule called the implicit function theorem to figure out how changes affect the solution. It also uses a technique called interior-point methods that smooths the problem to make calculations easier. The authors combine these ideas inside a method called sequential quadratic programming to compute the needed changes. They built a fast, free software tool that does all of this and works with many kinds of problems. When they tested it, it ran more than three times faster than other popular tools. This new tool lets researchers and engineers add learning to their control systems without waiting for slow calculations. In short, it makes it easier to create smarter, faster automated systems.

## For a technical reader
The paper introduces Differentiable Nonlinear Model Predictive Control, which efficiently computes parametric solution sensitivities for general nonlinear optimal control problems. It leverages the implicit function theorem and interior-point methods within a sequential quadratic programming framework to obtain forward and adjoint sensitivities. The implementation is integrated into the open-source acados framework and provides speedups exceeding 3× over existing solvers like mpc.pytorch and cvxpygen. This enables learning-enhanced control pipelines to obtain gradient information without costly finite-difference approximations. The tool is publicly available, making it easy for engineers to incorporate sensitivity analysis into their control applications.

## Problem
Computing parametric solution sensitivities for nonlinear model predictive control is challenging, especially when integrating learning-enhanced methods, because efficient sensitivity evaluation is needed for many learning algorithms.

## Method
The approach computes solution sensitivities of general nonlinear programs using the implicit function theorem and smoothed optimality conditions within interior-point methods, integrated into a sequential quadratic programming framework that employs interior-point solvers for quadratic subproblems.

## Results
The implementation achieves speedups exceeding 3× over the state-of-the-art solvers mpc.pytorch and cvxpygen on general optimal control problems.

## Contributions
A general framework for computing forward and adjoint sensitivities of nonlinear optimal control problems using the implicit function theorem and interior-point methods, along with an efficient open-source implementation in the acados framework.

## Practical relevance
Provides researchers and practitioners with a fast, open-source tool for sensitivity analysis in nonlinear MPC, facilitating learning-enhanced control designs.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153003)
