Fast Analytical Model Predictive Controllers and Their Implementation for STM32 ARM Microcontroller

This paper describes fast versions of model predictive control (MPC) algorithms and their practical implementation using the STM32 ARM microcontroller. Two MPC algorithms are considered: Dynamic Matrix Control (DMC) and Generalized Predictive Control (GPC). Computationally efficient Fast DMC (FDMC) and Fast GPC (FGPC) algorithms are derived in which the values of the manipulated variables are calculated from uncomplicated explicit formulas. To demonstrate effectiveness of the discussed algorithms, two emulated benchmark processes and a laboratory servo are considered. The influence of some tuning parameters on algorithms’ calculation time is studied. It is shown that for short sampling periods the classical DMC and GPC algorithms fail to work since calculations last longer than the sampling period, which is unacceptable. Conversely, the FDMC and FGPC algorithms require only hundreds or tens of microseconds and single microseconds, respectively. Hence, proposed algorithms may be used for very fast processes, with very short sampling time.

[1]  Tyler H. Summers,et al.  Fast Model Predictive Control of miniature helicopters , 2013, 2013 European Control Conference (ECC).

[2]  Baoming Ge,et al.  Model Predictive Direct Power Control for Active Power Decoupled Single-Phase Quasi-Z -Source Inverter , 2016, IEEE Transactions on Industrial Informatics.

[3]  José António Tenreiro Machado,et al.  Effect of fractional orders in the velocity control of a servo system , 2010, Comput. Math. Appl..

[4]  Jerome P. Lynch,et al.  Model-predictive control techniques for hydronic systems implemented on wireless sensor and actuator networks , 2014, 2014 American Control Conference.

[5]  Jun-Cheol Park,et al.  Model-Predictive Direct Power Control With Vector Preselection Technique for Highly Efficient Active Rectifiers , 2015, IEEE Transactions on Industrial Informatics.

[6]  Binh P. Nguyen,et al.  Implementation of model predictive control with modified minimal model on low-power RISC microcontrollers , 2012, SoICT '12.

[7]  John E. Fletcher,et al.  Predictive Torque Control of Induction Motor Sensorless Drive Fed by a 3L-NPC Inverter , 2017, IEEE Transactions on Industrial Informatics.

[8]  Jan M. Maciejowski,et al.  Predictive control : with constraints , 2002 .

[9]  Moritz Diehl,et al.  An auto-generated real-time iteration algorithm for nonlinear MPC in the microsecond range , 2011, Autom..

[10]  Ming Xu,et al.  A Simplified Dynamic Matrix Control for application of embedded real-time MPC , 2011, International Conference on Information Science and Technology.

[11]  M. Ksouri,et al.  Implementation of a Predictive controller on the STM32 board , 2013, 2013 International Conference on Control, Decision and Information Technologies (CoDIT).

[12]  Alena Kozáková,et al.  LQG/LTR based reference tracking for a modular servo , 2015 .

[13]  Takacs Gergely,et al.  Efficiency and performance of embedded model predictive control for active vibration attenuation , 2016 .

[14]  Enzeng Dong,et al.  A Fast Generalized Predictive Control Algorithm Based on Toeplitz Matrix , 2010, 2010 International Conference on Computational Intelligence and Software Engineering.

[15]  Zhanfeng Song,et al.  A Simplified Finite-Control-Set Model-Predictive Control for Power Converters , 2014, IEEE Transactions on Industrial Informatics.

[16]  Manfred Morari,et al.  Optimization‐based autonomous racing of 1:43 scale RC cars , 2015, ArXiv.

[17]  Mohamed Ben Ahmed,et al.  A Microcontroller Implementation of Model Predictive Control , 2011 .

[18]  Xun Gong,et al.  Fast Nonlinear Model Predictive Control on FPGA Using Particle Swarm Optimization , 2016, IEEE Transactions on Industrial Electronics.

[19]  Maciej Lawrynczuk,et al.  Implementation of Analytical Generalized Predictive Controller for Very Fast Applications Using Microcontrollers: Preliminary Results , 2017, KKA.

[20]  Faouzi Bouani,et al.  Application of model predictive control for a thermal process using STM32 microcontroller , 2017, 2017 International Conference on Control, Automation and Diagnosis (ICCAD).

[21]  F. Bouani,et al.  Automatic model predictive control implementation in a high-performance microcontroller , 2015, 2015 IEEE 12th International Multi-Conference on Systems, Signals & Devices (SSD15).

[22]  K. Lim,et al.  Generalized Predictive Control of , 2022 .

[23]  Piotr Tatjewski,et al.  Advanced Control of Industrial Processes: Structures and Algorithms , 2006 .

[24]  Corneliu Lazar,et al.  Real-Time Multi-Rate Predictive Cascade Speed Control of Synchronous Machines in Automotive Electrical Traction Drives , 2016, IEEE Transactions on Industrial Electronics.

[25]  Claudia-Adina Dragos,et al.  Choosing a Proper Control Structure for a Mechatronic System with Variable Parameters , 2013 .

[26]  C. R. Cutler,et al.  Dynamic matrix control¿A computer control algorithm , 1979 .