13 min
Beginner
Video
Theory
Link to External Site
Here we design an optimal full-state feedback controller for the inverted pendulum on a cart example using the linear quadratic regulator (LQR). In Matlab, we find that this is a simple one-line command 'lqr'.