Inverted Pendulum Model Predictive Control

Another application of the APMonitor Optimization Suite for Model Predictive Control
Updated 15 Jun 2015

View License

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.
See the dynamic optimization course at for additional examples in MATLAB and Python.

Cite As

John Hedengren (2024). Inverted Pendulum Model Predictive Control (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Added image