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.
Glossary
Linear MPC and Nonlinear 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.
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.
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 / Characteristic | Linear MPC | Nonlinear 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 |
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.
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).
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.
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.
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.
Receding Horizon Implementation
Linear MPC operates on the principle of Receding Horizon Control. At each control interval:
- Measure/estimate the current system state.
- Solve the QP to compute an optimal sequence of future control inputs over the prediction horizon.
- Apply only the first control input from this sequence to the physical system.
- 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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Linear and Nonlinear MPC are defined by the mathematical structure of their internal model and the resulting optimization problem. These related concepts are essential for understanding their design, implementation, and performance trade-offs.
Quadratic Programming (QP)
A Quadratic Programming (QP) problem is a convex optimization problem with a quadratic objective function and linear constraints. It is the core mathematical problem solved at each control step in Linear MPC. The standard form is:
- Minimize: (1/2)xáµ€Hx + fáµ€x
- Subject to: Ax ≤ b, A_eq x = b_eq
Where
xis the vector of optimization variables (future control inputs). The convexity of QP guarantees a globally optimal solution can be found efficiently with specialized solvers like interior-point methods or active-set methods, enabling reliable real-time control.
Nonlinear Programming (NLP)
A Nonlinear Programming (NLP) problem involves minimizing a nonlinear objective function subject to nonlinear constraints. This is the fundamental optimization problem in Nonlinear MPC (NMPC). Solving NLPs is significantly more complex than QPs because:
- Solutions may be only locally optimal, not globally optimal.
- Convergence is not guaranteed and depends heavily on the initial guess.
- Computational cost is higher and less predictable. Common solution algorithms include Sequential Quadratic Programming (SQP) and Interior-Point Methods, which iteratively approximate the NLP with simpler sub-problems.
Sequential Quadratic Programming (SQP)
Sequential Quadratic Programming (SQP) is a leading iterative algorithm for solving the Nonlinear Programming (NLP) problems in NMPC. At each iteration, it approximates the original problem by a Quadratic Programming (QP) subproblem:
- The nonlinear cost function is approximated by a quadratic model.
- Nonlinear constraints are linearized.
- The resulting QP is solved to find a search direction.
- A step is taken, and the process repeats until convergence. SQP is favored for its fast local convergence properties. Efficient implementation requires accurate gradient and Hessian information, often obtained via automatic differentiation.
Convex vs. Non-Convex Optimization
This distinction is the primary differentiator between Linear and Nonlinear MPC.
- Convex Optimization (Linear MPC): The feasible set and the cost function form a convex shape. Any local minimum is a global minimum. This guarantees solution uniqueness and allows for fast, reliable solvers.
- Non-Convex Optimization (Nonlinear MPC): The feasible set or cost function has "hills and valleys." Algorithms can get stuck in local minima that are not the best overall solution. This introduces uncertainty in solution quality and requires careful initialization (e.g., warm-starting) and potentially global optimization techniques for complex problems.
System Identification
System identification is the process of building the dynamic model used inside the MPC predictor from experimental input-output data. The model's accuracy is critical for prediction quality.
- For Linear MPC: Techniques like subspace identification or prediction error methods are used to fit a linear state-space model (e.g.,
x_{k+1} = Ax_k + Bu_k). - For Nonlinear MPC: Methods are more complex, including:
- Nonlinear ARX models or Hammerstein-Wiener models.
- Neural network or Gaussian process models.
- First-principles (white-box) models derived from physics. The choice between linear and nonlinear MPC often hinges on whether a sufficiently accurate linear model can be identified.
Real-Time Iteration (RTI) Scheme
The Real-Time Iteration (RTI) scheme is a computational strategy to make Nonlinear MPC feasible for real-time applications with fast sampling rates (e.g., robotics, automotive). Instead of solving the NLP to full convergence at each step, it performs only one SQP iteration per control interval.
- Preparation Phase: Between control steps, linearizations and matrix factorizations are computed using the current state estimate.
- Feedback Phase: Upon receiving a new measurement, the pre-prepared QP is solved rapidly to compute the control input. This scheme trades off a small amount of optimality for a drastic reduction in computation time, enabling NMPC on embedded hardware.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us