Model Predictive Control for Rotary Inverted Pendulum

Hoang Dieu Dang1,2, Thu Ha Nguyen1, , Thi Lan Anh Dinh1, Duc Quang Nguyen3
1 School of Electrical and Electronic Engineering, Hanoi University of Science and Technology, Ha Noi, Vietnam
2 Viettel High Technology Industries Corporation, Hanoi, Vietnam
3 School of Mechanical Engineering, Hanoi University of Science and Technology, Ha Noi, Vietnam

Main Article Content

Abstract

The article presents a practical approach for implementing traditional Model Predictive Control (MPC) on a rotary inverted pendulum, a highly nonlinear and inherently unstable system. The study begins with the development of a mathematical model of the pendulum, followed by the application of a predictive controller to this model. The proposed algorithm is subsequently validated on an experimental platform, the Quanser QUBE-Servo2. The paper emphasizes the advantages of MPC, particularly its ability to incorporate system constraints and effectively manage nonlinear dynamics, thus making it a widely adopted strategy in industrial applications. Nevertheless, it also addresses the inherent challenges of MPC implementation, notably the construction of accurate system models and the computational burden associated with solving complex optimization problems. The control objective is to maintain the pendulum in its upright equilibrium position. The study evaluates the effectiveness of MPC with and without uncertainty compensation by analyzing key performance metrics, including response time, settling time, overshoot, and steady-state error, through both simulations and experiments. The results illustrate the comparative benefits and limitations of the uncertainty-compensated MPC algorithm relative to the traditional MPC controller.

Article Details

References

[1] J. M. Maciejowski, Predictive Control: With Constraints, Hoboken, NJ, USA: Prentice Hall, 2002, pp.108-144.
[2] J. Richalet, A. Rault, J. L. Testud, and J. Papon, Model predictive heuristic control: applications to industrial processes, Automatica, vol. 14, iss. 5, pp. 413-428, Sept. 1978. https://doi.org/10.1016/0005-098(78)90001-8
[3] A. Ramdani, and S. Grouni, Dynamic matrix control and generalized predictive control, comparison study with IMC-PID, International Journal of Hydrogen Energy, vol. 42, iss. 28, pp. 17561-17570, Jul. 2017. https://doi.org/10.1016/j.ijhydene.2017.04.015
[4] JP. Corriou, Generalized predictive control in Process Control: Theory and Applications, 2nd ed., Gewerbestrasse, Cham, Switzerland: Springer International Publishing AG, pp. 611-630, 2018. https://doi.org/10.1007/978-3-319-61143-3_15
[5] F. Grasser, A. D'Arrigo, S. Colombi and A. C. Rufer, JOE: a mobile, inverted pendulum in IEEE Transactions on Industrial Electronics, vol. 49, iss. 1, pp. 107-114, Feb. 2002. https://doi.org/10.1109/41.982254
[6] Ogata, K., Modern Control Engineering, Prentice Hall, 5th edi., Jan. 2010.
[7] B. Wie, Space Vehicle Dynamics and Control, 2nd ed., AIAA Education Series, AIAA Inc., Reston, Jan. 2008. https://doi.org/10.2514/4.860119
[8] Winter, D. A., Biomechanics and Motor Control of Human Movement, John Wiley & Sons, Sep. 2009. https://doi.org/10.1002/9780470549148
[9] Y. Kuwata and J. P. How, Robust model predictive control for trajectory design in games and simulations, in Proceedings of the AIAA Guidance, Navigation, and Control Conference, Toronto, Canada, 2010.
[10] C. K. Chui, G. Chen, Linear systems and optimal control. Berlin, Heidelberg, Germany: Springer-Verlag Berlin Heidelberg, 1989.
[11] A. J. Krener, Adaptive horizon model predictive Control, IFAC-PapersOnLine, vol. 51, iss. 13, pp. 31-36, Aug. 2018. https://doi.org/10.1016/j.ifacol.2018.07.250
[12] J.D. Hedengren, R. Asgharzadeh Shishavan, K.M. Powell and T.F. Edgar, Nonlinear modeling, estimation and predictive control in APMonitor, Computers & Chemical Engineering, vol. 70, no. 5, pp.133-148, Nov. 2014. https://doi.org/10.1016/j.compchemeng.2014.04.013
[13] S. Subramanian, Y. Abdelsalam, S. Lucia and S. Engell, Robust tube-enhanced multi-stage NMPC with stability guarantees, IEEE Control Systems Letters, vol. 6, pp. 1112–1117, Jun. 2021. https://doi.org/10.1109/LCSYS.2021.3089502.
[14] S. Subramanian, S. Lucia, R. Paulen and S. Engell, Tube-enhanced multi-stage model predictive control for flexible robust control of constrained linear systems, International Journal of Robust and Nonlinear Control, vol. 31, iss. 9, pp. 4458-4487, Mar. 2021. https://doi.org/10.1002/rnc.5486
[15] J. G. Balchen, D. Ljungquist and S. Strand, State-space predictive control, Chemical Engineering Science, vol. 47, iss. 4, pp.787-807, 1992. https://doi.org/10.1016/0009-2509(92)80268-H
[16] Q-L. Su, M. W. Hermanto, R. D. Braatz and M-S. Chiu, Just-in-time-learning based extended prediction self-adaptive control for batch processes, Journal of Process Control, vol. 43, pp. 1-9, Jul. 2016. https://doi.org/10.1016/j.jprocont.2016.04.009
[17] Quanser Inc., Rotary Inverted Pendulum – User Manual, 2021.
[18] D. Q. Mayne, Model Predictive Control: Recent developments and future promise, Automatica, vol. 50, no. 12, pp. 2967–2986, 2014.