Offline Auto-Tuning of a PID Controller Using Extended Classifier System (XCS) Algorithm
Subject Areas : Computer Architecture and Digital SystemsEhsan Abbasi 1 , Nader Naghavi 2
1 - Department of Mechanical Engineering, Isfahan University of Technology, Isfahan , Iran
2 - School of Mechanical Engineering, Department of Engineering, University of Tehran, Tehran, Iran.
Keywords: PID controller tuning, Magnetic levitation, Extended classifier system, Artificial Intelligence,
Abstract :
Proportional + Integral + Derivative (PID) controllers are widely used in engineering applications such that more than half of the industrial controllers are PID controllers. There are many methods for tuning the PID parameters in the literature. In this paper an intelligent technique based on eXtended Classifier System (XCS) is presented to tune the PID controller parameters. The PID controller with the gains obtained by the proposed method can robustly control nonlinear multiple-inputmultiple-output (MIMO) plants in any form, such as robot dynamics and so on. The performance of this method is evaluated with Integral Squared Error (ISE) criteria which is one of the most popular optimizing methods for the PID controller parameters. Both methods are used to control the ball position in a magnetic levitation (MagLev) system and the performance of controllers are compared. Matlab Simulink has been used to test, analyze and compare the performance of the two optimization methods in simulations.
[1] K. J. Åström, T. Hägglund, "The future of PID control", Control Eng. Practice 9, p.1163-1175, 2001.
[2] K. J. Åström, T. Hägglund, "PID Controllers", Instrument Society of America,second edition, New York, 1995.
[3] Bennett, Stuart, "A history of control engineering", IET, p. p. 48. ISBN 978-0-86341-299-8, 1993.
[4] R. Guerra, S. González and R. Reyes, "Advances in PID control", ISBN: 978-953-307-267-8, InTech 2011.
[5] M. Zhuang, D. P. Atherton, "Automatic tuning of optimum PID controllers", IEE PROCEEDINGS-D, Vol. 140, No. 3, I993.
[6] K. H. Ang, chong. G, Li. Y, "PID Control System Analysis, Design, and Technology", IEEE Transactionson Control Systems Technology, Vol. 13, No. 4, P. 559-576, 2005.
[7] P. H. Chang, J. H. Jung, "A Systematic Method for Gain Selection of Robust PID Control for Nonlinear Plants of Second-Order Controller Canonical Form", IEEE Transactions on Automatic Control, Vol. 17, No. 2, P. 473-473, 2009.
[8] L.S. Coelho, "Tuning of PID Controller for an Automatic Regulator Voltage System Using Chaotic Optimization Approach", Chaos, Solitons and Fractals, Vol. 39, P. 1504-1514, 2009.
[9] J. B. He, Q. G. Wang, T. H. Lee, "PI/PID Controller Tuning via LQR Approach", Chemical Engineering Science, Vol. 55, P. 2429-2439, 2000.
[10] A. A. Awouda, R. Mamat, "New PID Tuning Rule Using ITAE Criteria", International Journal of Engineering, Vol. 3, No. 6, P. 597-608, 2008.
[11] A. Bagis, "Determination of the PID Controller Parameters by Modified Genetic Algorithm for Improved Performance", Journal of Information Science and Engineering, Vol. 23, P. 1469-1480, 2007.
[12] Stephen. B, Martin. H and Karl. J. A, "MIMO PID tuning via iterated LMI restriction", International Journal of Robust and Nonlinear Control, Vol. 26, No. 8, P.P 1718-1731, 2016.
[13] M. Woodson. "Electromechanical Dynamics", art I. John Wiley & Sons In., New York, 1968.
[14] V. Oliveira, E. Costa, and J. Vargas, "Digital Implementation of a Magnetic Suspension Control System for Laboratory Experiments", IEEE Trans. On Education, Vol. 42, No. 4, P.315-322, 1999.
[15] G. K. M. Pedersen, Z. Yang, "Multi-Objective PID-Controller Tuning for a Magnetic Levitation System using NSDA-ll", GECCO, Seattle, Washington, USA, 2006.
[16] Larry Bull, "Applications of Learning Classifier Systems", Springer Berlin Heidelberg, 2004
[17] M. V. Butz, T. Kovacs, P. L. Lanzi, and S. W. Wilson, "Toward a Theory of Generalization and Learning in XCS", IEEE Transaction On Evolutionary Computation, Vol 8, NO 1, 2004.
Journal of Advances in Computer Engineering and Technology
Offline Auto-Tuning of a PID Controller Using Extended Classifier System (XCS) Algorithm
Abstract— Proportional + Integral + Derivative (PID) controllers are widely used in engineering applications such that more than half of the industrial controllers are PID controllers. There are many methods for tuning the PID parameters in the literature. In this paper an intelligent technique based on eXtended Classifier System (XCS) is presented to tune the PID controller parameters. The PID controller with the gains obtained by the proposed method can robustly control nonlinear multiple-input–multiple-output (MIMO) plants in any form, such as robot dynamics and so on. The performance of this method is evaluated with Integral Squared Error (ISE) criteria which is one of the most popular optimizing methods for the PID controller parameters. Both methods are used to control the ball position in a magnetic levitation (MagLev) system and the performance of controllers are compared. Matlab Simulink has been used to test, analyze and compare the performance of the two optimization methods in simulations.
Keywords— Artificial Intelligence; Extended classifier system; Magnetic levitation; PID controller tuning
I. INTRODUCTION
Proportional + integral + derivative (PID) controllers are extensively used in the industry. In 2001, it was estimated that more than 90% of all control loops involved PID controllers [1]. Today this proportion decreased to more than 50% but still PID controller is the most popular controller in the industry. The simplicity, transparency, reliability and high efficiency are the most important reasons for this widespread popularity [2].In the absence of underlying process knowledge, a PID controller has traditionally been considered to be the best controller [3]. The drawbacks of this control technique, mostly for nonlinear systems, include the difficulty in selecting appropriate controller gains, a procedure which usually referred to as tuning. The difficulty usually lies in the fact that if the controller gains are set too small, the control objective may never be reached, whereas the selection of excessively large controller gains may result in system instability [4]. When a mathematical model of a system is available, the parameters of the controller can be basically determined. However, when a mathematical model is not available the parameters must be determined experimentally. Controller tuning is the process of determining the PID parameters which generate the desired output. Controller tuning allows for optimization of a process and minimizes the error between the process output and its desired value (i.e. the set point).
One of the most well-known criteria for optimizing the PID parameters is the integral of the squared error (ISE) criteria since the relevant integral can easily be evaluated in the frequency domain. This criteria is used when the mathematical model of the system is available [5].
There are several methods in the literature for tuning the PID parameters, which include some modern techniques. Ang et al presented a modern overview of functionalities and tuning methods, software packages and commercial hardware modules [6]. Pyung et al presented asystematic method to select gains of a discrete PID controller [7]. Coelho et al used a chaotic optimization approach based on Lozi map for tuning the PID parameters [8]. He et al presented a new optimal PI/PID controller tuning algorithms via LQR approach [9].Awouda et al demonstrated an efficient method of tuning the PID controller parameters using the optimization rule for ITAE performance criteria [10].Bagis presented an efficient and fast tuning method based on a modified generic algorithm structure to find the optimal parameters of the PID controller [11]. And Stephen et al formulate multi-input multi-output proportional integral derivative controller design as an optimization problem [12].
There are many methods to control ball position in the magnetic levitation that presented in the literature. These controllers include classical PID, feedback linearization, state feedback etc. In this paper, first the ISE criteria for PID tuning is applied to magnetic levitation (MagLev) system, referred to as ISE-PID system. This controller is designed within MATLAB. Next a new PIDtuning method based on artificial intelligence is presented. XCS (eXtended Classifier System) approach is used to adjust the parameters.The position of the ball in the magnetic levitation system is controlled by XCS tuned PIDgains, referred to as XCS-PID system.This method is implemented in the system using MATLAB programming and Simulink. Finallytheperformances of ISE-PID and XCS-PID systemsare compared.
The paper is outlined as follows: In Section 2 a general description of magnetic levitation system and its mathematical model is described. Details of XCS algorithm are presented in Section 3. The simulations to achieve the objectives of the paper are presented in Section 4 and finally concluding remarks are presented in Section 5.
II. MAGNETIC LEVITATION AND MATHEMATHICAL MODEL
Magnetic levitation (MagLev) is a system using electromagnetic forces to suspend a ferromagnetic object in the air without any contact. The electromagnetic forces overcome the effect of gravity and provide stable equilibrium of the object
In this section we describe the physical system briefly, which is the foundation of this research, followed by corresponding mathematical model of MagLev. By assuming linear characteristics of used materials, the magnetization density solely on the magnetic field density [13]. The beneath function can approximate magnetic flux
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description | Symbol | Value | Unit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
coil inductance | L(0) |
| H | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
coil resistance | R | 0.8 | Ω | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mag. inductance |
|
| H | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mag. ind.coeff. | a | 1.18 | m | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mass of object | m |
| Kg |
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
N | Rule | Strength | Prediction | Error | Experience |
1 | 636 | 731.99772 | 50 | 2.00e-323 | 14930 |
2 | 1122 | 623.81954 | 50 | 2.00e-323 | 12570 |
3 | 737 | 392.19494 | 50 | 2.00e-323 | 13719 |
4 | 309 | 385.12840 | 50 | 2.00e-323 | 13564 |
5 | 347 | 425.14672 | 50 | 2.00e-323 | 13823 |
And so on for three another initial situations we used same approach and the figures will show performances.
Fig. 2. The levitaion mass control by using ISE criteria (dashed line), settling time is 0.7112 (s) and overshoot is 7.5153%. and by using XCS algorithm (solid line) settling time is 0.5782 (s) and overshoot is 0.0605%.
Fig. 3. The levitaion mass control by using ISE criteria (dashed line), Settling time is 0.6902 (s) and overshoot is 7.0263%. and by using XCS algorithm (solid line) settling time is 0.5484 (s) and overshoot is 0.0543%.
Fig. 4. The levitaion mass control by using ISE criteria (dashed line), Settling time is 0.6514 (s) and overshoot is 7.5935%. and by using XCS algorithm (solid line) settling time is 0.5619 (s) and overshoot is 0.0757%.
Fig.5. The levitaion mass control by using ISE criteria (dashed line), Settling time is 0.7112 (s) and overshoot is 7.5153%. and by using XCS algorithm (solid line) settling time is 0.5782 (s) and overshoot is 0.0605%.
V. CONCLUSION
An eXtended Classifier System (XCS) was presented which was used to tune the PID controller parameters offline. The PID controller was then applied to control the ball position in a magnetic levitation system. During the training phase, the PID parameters were selected by the XCS system according to the ball position. The closed loop response of the presented method was compared with the system in which the PID parameters were tuned by integral of squared of error (ISE) criteria. At the end of training mode, the responses were compared where the XCS system led to a better performance having less overshoot and less settling time.
References
[1] | K. J. Åström, T. Hägglund, "The future of PID control", Control Eng. Practice 9, p.1163-1175, 2001. |
[2] | K. J. Åström, T. Hägglund, "PID Controllers", Instrument Society of America,second edition, New York, 1995. |
[3] | Bennett, Stuart, "A history of control engineering", IET, p. p. 48. ISBN 978-0-86341-299-8, 1993. |
[4] | R. Guerra, S. González and R. Reyes, "Advances in PID control", ISBN: 978-953-307-267-8, InTech 2011. |
[5] | M. Zhuang, D. P. Atherton, "Automatic tuning of optimum PID controllers", IEE PROCEEDINGS-D, Vol. 140, No. 3, I993. |
[6] | K. H. Ang, chong. G, Li. Y, "PID Control System Analysis, Design, and Technology", IEEE Transactionson Control Systems Technology, Vol. 13, No. 4, P. 559-576, 2005. |
[7] | P. H. Chang, J. H. Jung, "A Systematic Method for Gain Selection of Robust PID Control for Nonlinear Plants of Second-Order Controller Canonical Form", IEEE Transactions on Automatic Control, Vol. 17, No. 2, P. 473-473, 2009. |
[8] | L.S. Coelho, "Tuning of PID Controller for an Automatic Regulator Voltage System Using Chaotic Optimization Approach", Chaos, Solitons and Fractals, Vol. 39, P. 1504-1514, 2009. |
[9] | J. B. He, Q. G. Wang, T. H. Lee, "PI/PID Controller Tuning via LQR Approach", Chemical Engineering Science, Vol. 55, P. 2429-2439, 2000. |
[10] | A. A. Awouda, R. Mamat, "New PID Tuning Rule Using ITAE Criteria", International Journal of Engineering, Vol. 3, No. 6, P. 597-608, 2008. |
[11]
[12] | A. Bagis, "Determination of the PID Controller Parameters by Modified Genetic Algorithm for Improved Performance", Journal of Information Science and Engineering, Vol. 23, P. 1469-1480, 2007. Stephen. B, Martin. H and Karl. J. A, "MIMO PID tuning via iterated LMI restriction", International Journal of Robust and Nonlinear Control, Vol. 26, No. 8, P.P 1718-1731, 2016. |
[13] | M. Woodson. "Electromechanical Dynamics", art I. John Wiley & Sons In., New York, 1968. |
[14] | V. Oliveira, E. Costa, and J. Vargas, "Digital Implementation of a Magnetic Suspension Control System for Laboratory Experiments", IEEE Trans. On Education, Vol. 42, No. 4, P.315-322, 1999. |
[15] | G. K. M. Pedersen, Z. Yang, "Multi-Objective PID-Controller Tuning for a Magnetic Levitation System using NSDA-ll", GECCO, Seattle, Washington, USA, 2006. |
[16] | Larry Bull, "Applications of Learning Classifier Systems", Springer Berlin Heidelberg, 2004 |
[17] | M. V. Butz, T. Kovacs, P. L. Lanzi, and S. W. Wilson, "Toward a Theory of Generalization and Learning in XCS", IEEE Transaction On Evolutionary Computation, Vol 8, NO 1, 2004. |
Related articles
-
-
-
-
CAFT: Cost-aware and Fault-tolerant routing algorithm in 2D mesh Network-on-Chip
Print Date : 2019-11-01
The rights to this website are owned by the Raimag Press Management System.
Copyright © 2021-2024