Quiz: LQR Against MPC on a Finite Rail
Advanced Control Exercise 11: LQR Against MPC on a Finite Rail · Inverted Pendulum on a Cart app · Book chapter
1. An LQR and an MPC share the model, the weights and the sample interval, and the MPC uses the Riccati solution `P` as its terminal cost. No constraint is active. How do their first moves compare?
- Correct. With `x_N^T P x_N` as the terminal cost and no active limit, the finite-horizon problem has the same solution as the infinite-horizon LQR, so the first move is `-K x_0`.
- Incorrect. Both penalize the same `u^T R u`; with the Riccati terminal cost the optimal moves coincide.
- Incorrect. Looking ahead changes nothing while no limit binds; the terminal cost already carries the infinite-horizon cost.
2. A short-horizon MPC with no terminal cost loses an unstable pendulum that the same horizon holds with the LQR terminal cost. What is the best explanation?
- Correct. So it picks moves that are cheap for a few steps and lose the plant later. The terminal cost prices the state left at the end of the horizon; without it, a short plan has no reason to stop the cart.
- Incorrect. The same drive holds the pole once the terminal cost is added.
- Incorrect. Every plan was solved and accepted; the plan answered the wrong question.
3. Which property can the MPC express that the LQR cannot?
- Incorrect. Both use the same linear model `x_{k+1} = A x_k + B u_k`.
- Correct. Here a hard limit on the drive force and a soft limit on the cart position. The LQR is a fixed linear gain with no place to state a limit, so it learns of the rail only by reaching it.
- Incorrect. The LQR has `u^T R u` too.
Back to the exercise or all thirty exercises.