Inferensys

Glossary

Linear MPC and Nonlinear MPC

Linear MPC and Nonlinear MPC (NMPC) are two primary variants of Model Predictive Control, distinguished by the linearity of their internal dynamic models and the resulting optimization problem complexity.
ML engineer managing model versions on laptop, version history visible, technical Git-like workflow.
MODEL PREDICTIVE CONTROL (MPC)

What is Linear MPC and Nonlinear MPC?

Linear and Nonlinear MPC are two fundamental formulations of Model Predictive Control, distinguished by the complexity of the system model they use, which dictates the mathematical structure and computational demands of the underlying optimization problem.

Linear MPC is a Model Predictive Control formulation that uses a linear dynamic model and typically a quadratic cost function, resulting in a convex Quadratic Programming (QP) problem that can be solved efficiently and reliably at each control step. This approach is highly effective for systems that operate near a setpoint where linearization is valid, providing strong guarantees for constraint satisfaction and real-time optimization with deterministic solve times, making it a staple in process industries and robotics.

Nonlinear MPC (NMPC) employs a nonlinear dynamic model and cost function, leading to a Nonlinear Programming (NLP) problem that must be solved online. While computationally intensive, NMPC is essential for controlling systems with significant nonlinear dynamics, such as agile robotics or chemical processes operating across wide ranges. Solvers often use Sequential Quadratic Programming (SQP) or interior-point methods, and performance hinges on techniques like warm starting and careful system identification to manage the computational burden within the control loop's sampling period.

COMPARISON

Linear MPC vs. Nonlinear MPC: Core Differences

A technical comparison of the two primary formulations of Model Predictive Control, highlighting their mathematical foundations, computational characteristics, and typical applications.

Feature / CharacteristicLinear MPCNonlinear MPC (NMPC)

Core Dynamic Model

Linear time-invariant (LTI) or linear time-varying (LTV)

Nonlinear differential/algebraic equations

Typical Cost Function

Quadratic (convex)

General nonlinear (non-convex)

Resulting Optimization Problem

Quadratic Program (QP)

Nonlinear Program (NLP)

Problem Convexity

Convex (global optimum guaranteed)

Non-convex (local optima possible)

Online Solver Type

QP solver (e.g., active-set, interior-point)

NLP solver (e.g., SQP, interior-point)

Computational Burden

Low to moderate; predictable

High; variable and less predictable

Sampling Time Feasibility

Often < 10 ms

Typically > 50 ms to seconds

Typical Stability Guarantee

Easier to prove (via terminal ingredients)

Harder to prove; often requires advanced analysis

Robustness Techniques

Well-established (tube-based, min-max)

Complex and computationally intensive

Constraint Handling (Hard)

Straightforward in QP formulation

Possible but can cause NLP infeasibility

Common Applications

Process control, flight control, automotive cruise control

Chemical reactors, robotics, autonomous vehicle path tracking

DEFINITIVE GLOSSARY

Key Characteristics of Linear MPC

Linear Model Predictive Control (MPC) is a control strategy that uses a linear dynamic model and a quadratic cost function to formulate a convex optimization problem, typically solved as a Quadratic Program (QP). Its defining characteristics stem from this linear-quadratic structure, which balances computational efficiency with robust performance.

01

Convex Quadratic Programming Problem

The core computational engine of Linear MPC is a Quadratic Programming (QP) problem. This is because the cost function is quadratic (e.g., penalizing squared tracking error and control effort) and the dynamic model and constraints are linear. Convex QP problems have a single global optimum and can be solved reliably and efficiently with mature numerical solvers like interior-point methods or active-set methods. This guarantees that a feasible control action is always computed within the required sampling time, a cornerstone of Real-Time Optimization (RTO).

02

Linear Dynamic Model

Linear MPC relies on a linear time-invariant (LTI) or linear time-varying state-space model to predict future system behavior. Common forms include:

  • Discrete-time state-space: x(k+1) = A x(k) + B u(k)
  • Transfer function models converted to state-space.
  • Linear approximations of nonlinear systems around an operating point. The use of a linear model is the primary differentiator from Nonlinear MPC (NMPC). It simplifies the prediction equations, making them a linear function of the current state and future control inputs, which directly enables the QP formulation.
03

Explicit Constraint Handling

A major advantage over classical control is the ability to explicitly and systematically handle state constraints (e.g., position limits, safe temperatures) and input constraints (e.g., actuator saturation, valve limits). These are formulated as linear inequalities within the QP. Strategies include:

  • Hard constraints: Must not be violated; the optimizer finds a solution within the feasible region.
  • Soft constraints: Implemented with slack variables; they can be slightly violated at a high penalty in the cost function, ensuring the QP problem remains feasible even during large disturbances.
04

Stability and Recursive Feasibility

For a theoretically sound controller, Linear MPC designs must ensure closed-loop stability and recursive feasibility. This is often achieved using design techniques like:

  • Terminal cost: A quadratic term based on the solution to the Algebraic Riccati Equation (ARE), penalizing the final state in the prediction horizon.
  • Terminal constraint: Requiring the predicted state at the end of the horizon to lie within a terminal invariant set. Together, these tools allow the MPC law to be interpreted as a Lyapunov function, guaranteeing that the system state converges to the desired setpoint or region.
05

Receding Horizon Implementation

Linear MPC operates on the principle of Receding Horizon Control. At each control interval:

  1. Measure/estimate the current system state.
  2. Solve the QP to compute an optimal sequence of future control inputs over the prediction horizon.
  3. Apply only the first control input from this sequence to the physical system.
  4. At the next time step, shift the horizon forward, incorporate new measurements, and repeat the optimization. This feedback mechanism provides inherent robustness to model mismatch and disturbances.
06

Dependence on State Estimation

Linear MPC requires full knowledge of the system state x(k) for its predictions. Since not all states are directly measured, a state estimator or observer is almost always required. The canonical choice is the Kalman Filter, which provides an optimal estimate for linear systems with Gaussian noise. The estimated state serves as the initial condition for the prediction model in the QP. This combination of estimation and control is sometimes referred to as the separation principle in linear systems.

LINEAR MPC VS. NONLINEAR MPC

Frequently Asked Questions

Model Predictive Control (MPC) is a powerful framework, but its implementation diverges fundamentally based on the linearity of the underlying system model. These FAQs clarify the core distinctions, applications, and computational trade-offs between Linear MPC and Nonlinear MPC (NMPC).

The fundamental difference lies in the mathematical model used for prediction. Linear MPC employs a linear dynamic model (e.g., state-space) and typically a quadratic cost function, resulting in a convex Quadratic Programming (QP) problem at each time step. Nonlinear MPC (NMPC) employs a nonlinear dynamic model (e.g., from rigid-body dynamics or chemical kinetics) and/or a non-quadratic cost, resulting in a Nonlinear Programming (NLP) problem. This distinction dictates everything from solver selection and computational burden to stability guarantees and application domain.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.