Inverted Pendulum: Swing up & LQR Control design MATLAB Code
Version 1.0.0 (723 KB) by
jitendra singh
This is the Simulation of Inverted Pendulum's Swing up Control using Energy based Collocated Partial Feedback Linearization, LQR for Balance
This is the Matlab code for design Swing up & balance Control for Inverted Pendulum
Code written by Jitendra Singh.
IP_code simulation Folder contains 2 .m files such as:
- IP_LQR_code.m file to simulate LQR control for balance Inverted Pendulum at the top (@180 degree)
- IP_SwingUp_Lqr_Control.m file to simulate Swing up control & LQR for Balance at the top.
other .m functions files are used by above main simulation files for Animation & ODE solving of Inverted Pendulum
To run suimulation:
A) LQR CONTROL FOR BALANCING AT TOP (@180 degree):
- open IP_LQR_code.m file in MATLAB
- To simulate it, just run this code
B) SWING UP & LQR CONTROL FOR BALANCING AT TOP
- open IP_SwingUp_Lqr_Control.m file in MATLAB
- To simulate it, just run this code
- this code is written for implementation of Energy based Collocated Partial Feedback Linearization Control for Swing UP and LQR Control for balancing at the TOP.
FOR MORE INFORMATION visit it
Cite As
jitendra singh (2024). Inverted Pendulum: Swing up & LQR Control design MATLAB Code (https://www.mathworks.com/matlabcentral/fileexchange/97182-inverted-pendulum-swing-up-lqr-control-design-matlab-code), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |