Double inverted pendulum control using LQR and MPC

Control of a linearized double inverted pendulum using two different control techniques
169 Downloads
Updated 24 Nov 2025

View License

The following code performs two different techniques, optimal control and predictive control of a linearized double inverted pendulum on the upright equilibrium point.
Reference work:
Moysis, L. (2016). Balancing a double inverted pendulum using optimal control and Laguerre functions. Aristotle University of Thessaloniki, Greece, 54124.https://www.researchgate.net/publication/301635580_Balancing_a_double_inverted_pendulum_using_optimal_control_and_Laguerre_functions
See also the references cited in the paper.
Educational video on State Space Systems:
Youtube channel

Cite As

Lazaros Moysis (2026). Double inverted pendulum control using LQR and MPC (https://uk.mathworks.com/matlabcentral/fileexchange/159141-double-inverted-pendulum-control-using-lqr-and-mpc), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.2

added video links

1.0.1

added video link

1.0.0