Stanford AA203 Optimal and Learning-Based Control | Spring 2026 | Lecture 12: Feasibility of MPC
Overview
Stanford AA203 Lecture 12 develops conditions for persistent feasibility and asymptotic stability in model predictive control (MPC). It shows how a control-invariant terminal set guarantees feasibility, how the optimal MPC cost can serve as a Lyapunov function, and how terminal sets and costs can be selected using invariant-set computations, Lyapunov equations, or LQR and Riccati equations; it also introduces explicit MPC and delta-control tracking.
Key takeaways
- If the MPC terminal set Xf is control invariant, the shifted-feasibility argument guarantees that every subsequent finite-horizon problem remains feasible.
- The origin is a valid terminal set when zero input is allowed, but requiring arrival there within N steps can unnecessarily increase control effort; a larger control-invariant set is usually less restrictive.
- For quadratic MPC, the optimal cost J₀*(x) can certify closed-loop asymptotic stability when it is positive away from zero and decreases under a feasible shifted control sequence.
- For stable A, a maximal positively invariant set under zero input and a P matrix solving AᵀPA − P + Q = 0 provide a procedural route to feasibility and stability.
- For unstable A, use the infinite-horizon LQR feedback as the terminal controller, its closed-loop invariant set as Xf, and the Riccati solution as P.
- Tracking MPC should often penalize Δuₖ rather than absolute uₖ, so a constant nonzero input needed for steady tracking is not driven toward zero.
Chapters
- The lecture completes the persistent-feasibility discussion for constrained linear time-varying MPC.
- The remaining topics are Lyapunov stability, offline computation, and trajectory tracking.
- The proof compares the one-step controllable set to X1 with the truncated feasibility sets X0 and X1.
- Control invariance of X1 implies X1 is contained in the intersection of the state constraint set and the one-step controllable set to X1.
- Applying the first control of a feasible MPC sequence moves the system into X1, which is contained in X0, so the next MPC problem remains feasible.
- The theorem states that choosing the MPC terminal set Xf to be control invariant guarantees persistent feasibility for any horizon N.
- The proof works backward through truncated feasibility sets, showing that invariance of Xf implies invariance of XN−1, then earlier sets down to X1.
- The earlier feasibility lemma then establishes that the MPC optimization remains feasible at every replanning step.
- The origin is control invariant when zero input is admissible, so requiring the state to reach zero in N steps is a simple feasibility guarantee.
- That requirement can exclude otherwise useful control sequences and force excessive control effort.
- A larger control-invariant terminal set relaxes the constraint while retaining the persistent-feasibility guarantee.
- For discrete dynamics xₖ₊₁ = f(xₖ), an equilibrium is stable when nearby trajectories remain controlled and converge appropriately.
- Lyapunov analysis avoids solving every state trajectory directly by finding a function V that is zero at the origin, positive elsewhere, and decreases along trajectories.
- The lecture interprets V as an energy-like quantity whose decrease indicates convergence toward the equilibrium.
- The theorem assumes a quadratic stage cost xᵀQx + uᵀRu, positive-definite Q, R, and terminal penalty P, plus closed constraint sets containing the origin.
- A control-invariant terminal set supplies persistent feasibility.
- A further condition requires a feasible terminal-set control that makes stage cost plus next-step terminal cost no greater than the current terminal cost.
- The proof proposes the optimal finite-horizon cost J₀*(x) as a Lyapunov function for the closed-loop MPC system.
- At x = 0, the all-zero control sequence has zero quadratic cost and leaves the state at zero, establishing the equilibrium.
- For any nonzero initial state, the positive-definite state penalty Q makes the first stage cost, and therefore J₀*(x), positive.
- After applying the first optimal input, the next state is x₁ = Ax₀ + Bu₀*.
- A candidate sequence for the next MPC problem shifts the previous optimal controls forward by one step and appends a feasible terminal control.
- The shifted states reproduce the prior predicted trajectory, allowing the next optimal cost to be bounded by the cost of this feasible candidate.
- Because the previous predicted endpoint lies in Xf and Xf is control invariant, a terminal input can keep the appended state inside Xf.
- The shifted candidate satisfies the input constraints, state constraints, and terminal constraint at the next planning step.
- The terminal-cost condition bounds the change in cost, yielding a strict decrease in J₀* for nonzero states because the stage cost is positive.
- For asymptotically stable A, choose Xf as the maximal positively invariant set for xₖ₊₁ = Axₖ.
- Zero input keeps states in this set, making it control invariant and satisfying the feasibility requirement.
- Choose P to solve the discrete Lyapunov equation AᵀPA − P + Q = 0; a positive-definite solution provides the terminal-cost condition for stability.
- When A is unstable, zero-input dynamics do not provide convergence, so use the infinite-horizon LQR feedback u = K∞x as the terminal controller.
- Choose Xf as a positively invariant set for the LQR closed-loop dynamics, ensuring the terminal controller remains feasible there.
- Set P to the discrete-time Riccati-equation solution, which supplies the terminal value function and supports the stability guarantee.
- For linear dynamics with quadratic costs and constraints, explicit MPC partitions the state space into polyhedral regions.
- Within each region, the optimal input is an affine law, u = Fᵢx + gᵢ, computed offline.
- Online control becomes region lookup and evaluation rather than optimization, though large and irregular partitions can make modern online solvers faster.
- The design recipe uses Xf for persistent feasibility, Q and R for performance, and P for stability.
- The MPT3 MATLAB toolbox computes control-invariant and positively invariant sets and is used in Problem Set 3.
- Explicit MPC is presented as an option, while online optimization remains practical with current convex solvers.
- A tracking objective that penalizes absolute control can reduce necessary steady thrust once tracking error becomes small, creating a conflict between tracking and effort.
- Instead, penalize changes in input, Δuₖ = uₖ − uₖ₋₁, alongside output tracking error yₖ − rₖ.
- At perfect tracking with constant thrust, the tracking error and Δu are both zero, matching the intended steady operating behavior.
- The lecture closes the known-model portion of the course with MPC feasibility, stability, and tracking design.
- The next topic is control when parts of the system model are unknown, requiring adaptation or learning to act near optimally.
- Problem Set 3 will apply the MPC concepts and MPT3 invariant-set tools.
Transcript excerpt
0:05 All right. Let's get started. So today, we're going to continue our discussion about MPC. In particular. We're going to wrap up our discussion about persistent feasibility as one of the key properties we want to imbue in our MPC control pipeline. And then we'll switch to the topic of stability. So not only we want to make sure that MPC loop has a feasible solution at each point in time, but we also want to make sure that whatever action we optimize for does something useful. In our problem setting, useful means we are stabilizing the system that is converging to 0. We'll then wrap up the discussion with a couple of topics that are of practical relevance, specifically how some of the optimization
0:52 could actually be computed offline as opposed to online. That was actually a pretty big deal about 10 years ago where hardware was not particularly advanced yet, and optimization solvers were not particularly advanced yet. So offloading part of optimization offline was a big deal because it relieved what you had to do online. So basically, you minimize delays. And then we're going to talk about the application of MPC to a slightly more general setting, which is that of a trajectory tracking. And I will show you how the MPC formulation has to be modified a little bit to ensure that you have a good tracking performance. Interestingly enough, sometimes people in industry get it wrong. So I want to make sure that you are not one of those people. All right.
1:38 So last time, we introduced the concept of MPC. It's a bit dark here. Let's leave it at this before the entire setup explodes. So we talked about MPC. I introduced the concept. I introduced a specific problem set up, which is that of controlling a linear time varying system.
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Stanford Online.