A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Model Predictive Control (Advanced)

Research Depth 136 in the knowledge graph ☐ I know this ☆ Set as goal
921prerequisites beneath it
See this on the map →
State Feedback Control and Pole PlacementState-Space Representation+1 more→
mpc predictive-control constrained-optimization receding-horizon nonlinear-mpc

Core Idea

Model Predictive Control (MPC) optimizes control input over a finite future horizon by solving a constrained optimization problem at each time step, then implementing only the first control move (receding-horizon principle). MPC naturally handles multi-variable coupling, input/state constraints, and performance objectives beyond simple pole placement. Practical MPC formulations use explicit quadratic programming (QP), interior-point solvers, or specialized algorithms for real-time execution. Nonlinear MPC (NMPC) extends the framework to nonlinear plant models via sequential convex approximation or direct discretization methods, enabling control of systems where linearization is inadequate.

How It's Best Learned

Implement a basic MPC regulator for a 2–3 state system with constraints: minimize ||y−r||² + ||u||² subject to |u| ≤ 1 and |x| ≤ 5 over a 10–15 step horizon. Compare closed-loop responses with PID and LQR (unconstrained). Observe how constraint activation changes the optimal trajectory and why the receding-horizon approach achieves stability despite the finite horizon.

Common Misconceptions

Explainer

You've studied state feedback and system identification: how to place poles and estimate unknown system dynamics. MPC takes a radically different approach — instead of designing a fixed linear feedback law, MPC solves an optimization problem at every time step to compute the best control inputs over the next N steps, then implements only the first move and repeats (receding horizon).

Why this matters: in the real world, actuators saturate (can only push so hard), outputs must respect safety bounds, and you often care about multiple objectives simultaneously — minimize energy use while keeping temperature in a band and avoiding overshoot. State feedback control cannot directly handle these constraints. A pole-placed LQR controller can be implemented and will stabilize, but once the actuator saturates, the closed-loop behaves unpredictably (the linear controller assumes unlimited actuation). MPC bakes constraints directly into the optimization. The solver respects them by construction: it will not recommend a control action that violates constraints, and if constraints are mutually impossible (can't satisfy all of them simultaneously), the solver will explicitly report this rather than silently failing.

The MPC formulation is a constrained quadratic program:

minimize: ∑(||y(k+i)−r||²_Q + ||u(k+i)||²_R) over i=0 to N-1

subject to: x(k+i+1) = Ax(k+i) + Bu(k+i), y(k+i) = Cx(k+i), and bounds |u|≤u_max, |x|≤x_max, etc.

At each time step k, you solve this optimization, extract u(k) (the first optimal input), apply it to the plant, measure the new state, and resolve at time k+1. This receding-horizon structure is key: by re-optimizing at each step, MPC adapts to disturbances and modeling errors without requiring a perfect model — you only commit to the immediate control move, not a pre-planned trajectory.

Nonlinear MPC (NMPC) replaces the linear dynamics x(k+1) = Ax(k) + Bu(k) with a nonlinear model x(k+1) = f(x(k), u(k)). This is vastly more complex: the optimization becomes nonconvex, and a global optimum is generally intractable. Practical NMPC uses Sequential Quadratic Programming (SQP): at each time step, linearize the nonlinear dynamics around the current trajectory, solve the linearized QP, use that solution as an improved starting point, linearize again, repeat until convergence. SQP warm-started from the previous time step's solution converges in a few iterations, making real-time NMPC feasible. Alternatively, Convex-Concave Procedure (CCP) approximates the nonlinear dynamics by a sequence of convex problems. The tradeoff: NMPC is more expressive and handles true nonlinearities, but the solver is not guaranteed to find the global optimum and can fail to converge (especially if the warm-start guess is poor or the nonlinearity is severe). Stability guarantees are weaker: NMPC with a finite horizon only guarantees local stability near the origin unless special terminal conditions are imposed.

The terminal cost or terminal constraint is subtle but essential. Since you optimize over a finite horizon, the optimizer might choose a control sequence that is locally optimal over the window but globally unstable — deferred cost is out of the window, so it doesn't get penalized. The solution: either impose a terminal constraint (force the state at step k+N into a small region, typically near the origin) or a terminal cost (add a term that penalizes the state at the horizon end as if the infinite future cost could be approximated by a quadratic function of the state at that point). With either, the finite-horizon MPC is provably asymptotically stable. Without them, MPC can destabilize, especially for short horizons.

Computational cost is the major tradeoff. Solving a QP or NLP at millisecond timescales requires specialized hardware or algorithms. Explicit MPC precomputes the control law offline as a piecewise-affine (for linear MPC) or polynomial function of the state, reducing real-time computation to table lookups — eliminating the online optimization entirely but requiring extensive offline precomputation for systems with more than about 6 states. For most systems, online MPC is practical: modern solvers (CVXPY, Casadi, FORCES Pro) can solve moderate-sized problems in milliseconds, and warm-starting from the previous solution accelerates convergence. MPC is the industrial standard for constrained control in refining, petrochemicals, and aerospace, where the computational cost is justified by the complexity of managing dozens of process variables under operating and safety constraints simultaneously.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Triple Integrals in Cartesian Coordinates → Triple Integrals in Cylindrical and Spherical Coordinates → Change of Variables and the Jacobian Determinant → Applications of Triple Integrals: Volume and Mass → Vector Fields and Their Representations → Line Integrals of Vector Fields → Work and Circulation → Line Integrals of Scalar and Vector Functions → Fundamental Theorem for Line Integrals → Conservative Vector Fields → Conservative Vector Fields and Potential Functions → Curl and Divergence of Vector Fields → Curl and Divergence → Divergence Theorem → Electric Flux and Divergence Theorem → Gauss's Law: Integral Form and Meaning → Solving Problems with Gauss's Law → Conductors in Electrostatic Equilibrium → Capacitance and Capacitors → Dielectrics → Dielectric Constant and Relative Permittivity → Electric Field Inside Dielectric Materials → Dielectric Materials and Polarization → Dielectric Susceptibility and Permittivity → Energy Density in Electric Fields → Electric Current and Current Density → Electrical Resistance and Resistivity → Ohm's Law and Circuit Elements → Electromotive Force (EMF) and Batteries → Kirchhoff's Circuit Laws: Voltage and Current → DC Circuit Network Analysis Methods → Transient Response in RC Circuits → RC Circuits → First-Order Transient Circuit Response → Second-Order Transient Circuit Response → Feedback Control Fundamentals → Laplace Transform Methods for Control → Transfer Functions and System Modeling → Poles, Zeros, and System Stability → Characteristic Equation and Closed-Loop Stability → Routh-Hurwitz Stability Criterion → Root Locus Method → Root Locus Construction Rules → Root Locus Gain Design → Root Locus Method and Pole Placement Design → State Feedback Control and Pole Placement → Model Predictive Control (Advanced)

Longest path: 137 steps · 921 total prerequisite topics

Prerequisites (3)

Leads To (0)

No topics depend on this one yet.