A model predictive controller for an inverted pendulum system with an adjustable cart. The cart performs a sequence of moves to maneuver from any position to another position in 1D, verifying that v, θ, and q are zero before and after the maneuver.
John Hedengren (2020). Inverted Pendulum Model Predictive Control (https://www.mathworks.com/matlabcentral/fileexchange/51197-inverted-pendulum-model-predictive-control), MATLAB Central File Exchange. Retrieved .