This repository contains simulations and visualizations from assignments and projects in the 2023 Optimal Control Course at K. N. Toosi University of Technology, supervised by Dr. Hamid Khaloozadeh (Professor of Systems and Control Engineering). All algorithms are implemented in the MATLAB R2023a environment. The inverted pendulum (cart-pole) system serves as a benchmark for evaluating various optimal control strategies.
The inverted pendulum is an inherently unstable system with highly nonlinear dynamics. This system belongs to the class of under-actuated mechanical systems with fewer control inputs than the degrees of freedom. This renders the control task more challenging, making the inverted pendulum system a classical benchmark for designing, testing, evaluating, and comparing different classical and contemporary control techniques. Being an inherently unstable system, the inverted pendulum is among the most difficult systems and is one of the most important classical problems. The control of an inverted pendulum has been a research interest in control engineering. Due to its importance, a dynamic system is chosen to analyze its dynamic model and propose a control law.
This case study aims to stabilize the inverted pendulum such that the position of the cart on the track is controlled quickly and accurately, so that the pendulum is always erected in its inverted position during such movements. Realistically, this simple mechanical system is representative of a class of attitude control problems whose goal is to maintain the desired vertically oriented position at all times.
- Lewis, Frank L., Draguna Vrabie, and Vassilis L. Syrmos. Optimal control. John Wiley & Sons, 2012.
- Prasad, Lal Bahadur, Barjeev Tyagi, and Hari Om Gupta. Optimal control of nonlinear inverted pendulum system using PID controller and LQR: performance analysis without and with disturbance input. International Journal of Automation and Computing 11 (2014): 661-670.
For any questions or additional information regarding the Optimal Control Course 2023, please do not hesitate to contact me at mm.ghorbani@email.kntu.ac.ir.
