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?

A. They are equal; each is the LQR move `-K x_0`.
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`.
B. The MPC moves more gently, spreading effort over `N` steps.
Incorrect. Both penalize the same `u^T R u`; with the Riccati terminal cost the optimal moves coincide.
C. The MPC moves harder, because it looks ahead.
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?

A. Costs after the horizon are invisible to the plan.
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.
B. The drive force limit is too small for any controller.
Incorrect. The same drive holds the pole once the terminal cost is added.
C. The quadratic program failed to converge in time.
Incorrect. Every plan was solved and accepted; the plan answered the wrong question.

3. Which property can the MPC express that the LQR cannot?

A. A linear model of the cart and pole dynamics.
Incorrect. Both use the same linear model `x_{k+1} = A x_k + B u_k`.
B. Hard and soft limits written into the optimization.
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.
C. A quadratic penalty on input effort, traded against error.
Incorrect. The LQR has `u^T R u` too.

Back to the exercise or all thirty exercises.

Course Information

TCLab

Project

Applications

Advanced Control Exercises

Exams

Modeling

Machine Learning

Estimation

Control

Reinforcement Learning

Related Courses

Admin