Open Access Open Access  Restricted Access Subscription or Fee Access

The Application of Extremum Seeking Algorithms in PID Tuning for Continuous Stirred Tank Reactor

(*) Corresponding author

Authors' affiliations



One of the most common control algorithms in process control is the Proportional-Integral-Derivative (PID) controller, which could be very efficient if well tuned. The aim of this paper is to discuss the optimal tuning of the PID controller using extremum seeking (ES). Two ES algorithms, Perturbation Based Extremum Seeking (PBES) and Sliding Mode Based Extremum Seeking (SMBES), will be used to tune the PID parameters by searching for the optimal parameters that minimize a certain performance index. The Continuous Stirred Tank Reactor (CSTR), with irreversible first-order reaction, has been considered as a case study. The two algorithms have been implemented with two choices of Performance-Index (PI), Integral Absolute Error (IAE) criteria, and a combination of IAE with the integral of absolute of control signal. With the later choice of PI, both the algorithms show an improvement in the performance over the Internal Mode Control (IMC) tuning method, with good control behavior. The cost in the PBES tuning algorithm has converged to an ultimate bound around the optimal value within a lower number of iteration than the SMBES tuning algorithm. However, the speed of the SMBES algorithm can be increased but with the drawback of increasing the chattering effect produced in the PID parameters.
Copyright © 2021 Praise Worthy Prize - All rights reserved.


PID Auto-Tuning; Sliding Mode Based Extremum Seeking; Perturbation Based Extremum Seeking; Continuous Stirred Tank Reactor

Full Text:



N. Minorsky, Directional Stability of Automatically Steered Bodies, Naval Engineers Journal, Vol. 34(Issue 2):280-309, 1922.

H. akatsu, and T. Itou, Future Needs for Control Theory in Industry - Report of the Control Technology Survey in Japanese Industry, IEEE Trans. On Control Systems Technology Vol. 7(Issue 3): 298-305, 1999.

K. J. Astrom, T. Hagglund, C. C. Hang, and W. K. Ho, Automatic tuning and adaptation for PID controllers - A survey, Control Eng.Practice, vol. 1(Issue 4): 699-714, 1993.

K. J. Astrom, T. Hagglund, PID Controllers: Theory, Design and Tuning (North Carolina, USA: Instrument Society of America, 1995).

A. Leva, PID auto tuning algorithm based on relay feedback, IEEE Proceedings D - Control Theory and Applications, vol. 140(issue 5), pp. 328-338, Sept. 1993.

Sahaj Saxena, Yogesh, and V. Hote, Advances in Internal Model Control Technique: A Review and Future Prospects, IETE Technical Review, Vol. 29(Issue 6):461–472, 2012.

Khodja, M., Larbes, C., Ramzan, N., Ibrahim, A., Implementation of Heuristical PID Tuning for Nonlinear System Control, (2019) International Review of Automatic Control (IREACO), 12 (2), pp. 108-114.

M.H. Jasim, Tuning of a PID Controller by Bacterial Foraging Algorithm for Position Control of DC Servo Motor, Engineering and Technology Journal, vol. 36(Issue 3A): 287-294, 2018.

A. Marin, J. A. Hernandez R. and J. A. Jimenez, Tuning Multivariable Optimal PID Controller for a Continuous Stirred Tank Reactor Using an Evolutionary Algorithm, IEEE Latin America Transactions, vol. 16(issue 2):422-427, Feb. 2018.

H. Hjalmarsson, M. Gevers, S. Gunnarsson, and O. Lequin, Iterative feedback tuning: Theory and applications, IEEE Contr. Syst. Mag., vol. 18(Issue 4): 26–41, 1998.

H. Hjalmarsson, S. Gunnarsson, and M. Gevers, A convergent iterative restricted complexity control design scheme, Proc. 33rd IEEE CDC, pp. 1735-1740, 1994.

M. Leblanc, On the electrification of railways by means of alternating currents of high frequency, Rev. Gen. Electr, 1922.

M. Krstic, and H. H. Wang, Stability of extremum seeking feedback for general dynamic systems, Automatica, Vol. 36(Issue 2): 595–601, 2000.

K.B. Ariyur, and M. Krstic, Real-time Optimization by Extremum-seeking Control (Wiley-Interscience, Hoboken, 2003).

N. Killingsworth and M. Krstic, Auto-tuning of PID controllers via extremum seeking, Proceedings of the 2005 American Control Conference, 2005.

Q. Chen, Y. Tan, J. Li and I. Mareels, Decentralized PID Control Design for Magnetic Levitation Systems Using Extremum Seeking, IEEE Access, vol. 6: 3059-3067, 2018.

D. Cortes Tobar, V. Hoang Duy, T. Trong Dao (eds), AETA 2019 - Recent Advances in Electrical Engineering and Related Sciences: Theory and Application (Springer International Publishing, 2021, pp. 234-243).

T. Roux-Oliveira, L.R. Costa, & A.V. Pino, and P. Paz, Extremum Seeking-based Adaptive PID Control applied to Neuromuscular Electrical Stimulation. An. Acad. Bras. Ciênc., vol. 91(Suppl. 1), 2019.

J. Zhao, W. Jing, and J. Wang, An indirect optimization scheme for tuning a fractional order PI controller using extremum seeking, Mechatronics, vol. 56: 146-156, 2018.

S. M. Raafat and R. Hussein, Multivariable Extremum Seeking Control for Power Maximization and PI Tuning of Wind Turbine System, 2018 Third Scientific Conference of Electrical Engineering (SCEE), pp. 128-133, Baghdad, Iraq, 2018,

I.I.Gorial, Sliding Mode Controller Design for Flexible Joint Robot, Engineering and Technology Journal, vol. 36(Issue 7A): 733–741, 2018.

S. Al-Wais, S.A. Al-Samarraie, H. Abdi and S. Nahavandi, Integral Sliding Mode Controller for Trajectory Tracking of a Phantom Omni Robot, 2016 International Conference on Cybernetics, Robotics and Control (CRC), Hong Kong, China, pp. 6-12, 2016.

S.A. Al-Samarraie, M.N. Hamzah, and Y.K. Al-Nadawi, Vehicle ABS control system design via integral sliding mode, Int.J. Automation and Control, vol. 10(Issue 4): 356-374, 2016.

J. Liu, Y. Gao, Y. Yin, J. Wang, W. Luo, and G. Sun, Sliding Mode Control Methodology in the Applications of Industrial Power Systems (Springer International Publishing, 2020, pp. 27-62).

J. Feng, L. Ma, D. Zhao, X. Yan and S. K. Spurgeon, Output Feedback Sliding Mode Control for Continuous Stirred Tank Reactors, 2019 12th Asian Control Conference (ASCC), Kitakyushu-shi, Japan, pp. 1443-144, 2019.

Z. Ye, Z. Dongya and S. S. K., Disturbance Observer Based Adaptive Sliding Mode Control for Continuous Stirred Tank Reactor, 2019 Chinese Control Conference (CCC), Guangzhou, China, pp. 411-416, 2019.

S. K. Korovin, V. I. Utkin, Using sliding modes in static optimization and nonlinear programming, Automatica Vol. 10: 525-532, 1974.

R. S. Raheem, M. Y. Hassan, and S. K. Kadhim, Simulation Design of Blood-pump Intelligent Controller Based on PID-like fuzzy logic Technique, Engineering and Technology Journal, vol. 38(Issue 8): 1200–1213, 2020.

S. A. Al-Samarraie and Y. K. Al-Nadawi, Design of Electronic Throttle Valve Position Control System using Nonlinear PID Controller, International Journal of Computer Applications, vol. 59(Issue 15): 27–34, 2012.

G.B. So and G.G. Jin, Fuzzy-based nonlinear PID controller and its application to CSTR. Korean J. Chem. Eng. vol. 35: 819–825, 2018.

M. Shouran ,E. Elgamli, Teaching-Learning based Optimization Algorithm Tuned Fuzzy-PID Controller for Continuous Stirred Tank Reactor, International Research Journal of Engineering and Technology (IRJET), vol. 7(Issue 9): 3882– 3886, 2020.

S. V. Drakunov, U. Özgüner, Optimization of nonlinear system output via sliding mode approach, Proceedings of the IEEE International Workshop on Variable Structure and Lyapunov Control of Uncertain Dynamical Systems, Sheffield, UK, pp. 61–62, 1992.

Hai Yu, U. Özgüner, Extremum-Seeking Control via Sliding Mode with Periodic Search Signals, Proceedings of the 41st IEEE Conference on Decision and Control, 2002.

Y. Pan, U. Özgüner, T. Acarman, Stability and performance improvement of extremum seeking control with sliding mode, International Journal of Control, vol. 76(Issue 9-10): 968–985, 2003.

Y. B. Salamah and Ü. Özgüner, Sliding Mode Multivariable Extremum Seeking Control with Application to Wind Farm Power Optimization, 2018 Annual American Control Conference (ACC), Milwaukee, WI, pp. 5321-5326, 2018.

A. Almabrok, M. Psarakis and A. Dounis, Fast Tuning of the PID Controller in An HVAC System Using the Big Bang–Big Crunch Algorithm and FPGA Technology, Journal of Algorithms, Vol. 10(Issue 11): 146, 2018.

F. Lona and L. Maria, A Step by Step Approach to the Modeling of Chemical Engineering Processes (Springer International Publishing, 2018).

R. Matušů, B. Şenol and L. Pekař, Robust PI Control of Interval Plants With Gain and Phase Margin Specifications: Application to a Continuous Stirred Tank Reactor, in IEEE Access, vol. 8: 145372-145380, 2020.


  • There are currently no refbacks.

Please send any question about this web site to
Copyright © 2005-2023 Praise Worthy Prize