Abstract
The purpose of this paper is to plan a PSO algorithm application to tune the parameters of the PID regulator. This paper employs the model of a DC motor as a plant. As the conventional tuning of PID regulator using Ziegler–Nichols (Z-N) technique delivers a major overshoot, the present-day heuristics approach named particle swarm optimization (PSO) has been utilized here to upgrade the proficiency of old conventional technique. Four different performance indices (IAE, ISE, ITAE, and ITSE) are used while comparing PSO-based PID and ZN-PID in this paper. The results have shown the better performance of the PID tuning utilizing the PSO-based optimization approach.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Though the control theory has touched new heights, even today the most inescapable form of feedback compensation comes from the PID controller. PID controllers have become the backbone of the motion control system in the industry [1]. Self-adjusting PID has transformed the shape of the industrial world and made it suitable for engineers to bring the finest control of a plant. The output generated by the PID controller is the aggregation of the outputs of proportional, integral, and derivative controllers. As per the literature concerned, above 95% of industrial control is done by the PID controllers. A PID regulator ceaselessly figures an error e(t) as the distinction amid the process variable (PV) and set point (SP). PID’s accuracy and optimized automatic control make it a problem solver. As it has all the necessary dynamics like reduced rise time, steady-state error and improves the transient response which makes the system stable. Ziegler–Nichols developed the first tuning rules with two methods [2]. The first one is for an open-loop system, and the second one is for the closed-loop system. The Z-N adjusting in feedback loop requires the critical gain and critical period. In this technique, the controller is put on automatic mode while the integral and derivative actions are shut off. The regulator gain is raised until an interruption which causes continuous oscillations in the process variable. As the computational approaches are modernized in recent times for the sake of desirable results in industrial process control via tuning of the regulator’s optimization, algorithms came into role [3,4,5,6,7,8]. The principal proponents of the PSO algorithm were Kennedy and Eberhart in 1995 [9]. In order to get the finest results, different agents are employed. These agents move in a group and every agent tries to provide the finest outcome. In PSO individual particle’s latest location is decided by a velocity term which redirects the attraction of global best and its own best throughout the history of the particle and random coefficients.
2 Problem Formulation
The block diagram of a feedback control system of the closed-loop type is shown in Fig. 1. PID regulator comprises of following gains (a) proportional, (b) integral, and (c) derivative. The scheme of feedback type is reflected in Fig. 1 where reference input, control error, and measured output are denoted as r, e, y correspondingly.
In this control scheme shown in Fig. 1, the target system (plant) is represented as G(s) and regulator as C(s), which is specified by Eq. (1) as given below:
where Kp, Ki, Kd are separately recognized as proportional, integral, and derivative coefficients of the PID regulator that are heading for adjustment.
DC Motor Modeling
See Fig. 2.
System equations are represented as follows:
Torque equation:
Back EMF equation:
Torque equation using Newton’s second law:
Terminal voltage equation using Kirchhoff’s voltage law:
Using Eqs. (2)–(5) in Laplace domain, we get
Using the block diagram, the obtained transfer function between angular position and voltage is given in Fig. 3:
The physical parameters of the DC motor are given below:
J = 1 kg m2, B = 8 N m s, R = 1 Ω, L = 1 H, K = 1 N m/A, KW = 15 V/Rad/s and Kt = 15 V/Rad.
On substituting the above parameters in Eq. (7), the transfer function model of the DC motor is given by Eq. (8):
Moreover, error-based performance index to design an optimum PID regulator is being used in this work. Error-based performance criteria are utilized as a measurable tool to rate the functioning of the PID regulator system which has been designed in this paper. Utilizing the instant strategy an ‘ideal framework’ can be frequently planned, and a bunch of coefficients of PID regulator in the framework can be changed accordingly to achieve the necessary conditions. Framework execution of PID regulator is portrayed in ISE, IAE, ITAE, and ITSE. They are characterized as follows:
3 Solution Methodology
-
A.
Two solution methodologies have been used in this research work. First one is tuning of PID using conventional Ziegler–Nichols (ZN) technique, and the second one is PID tuning using particle swarm optimization.
-
B.
Z-N METHOD USED FOR TUNING OF PID REGULATOR
We have used the second technique of ZN METHOD, i.e., tuning of PID with closed-loop method. This approach demands that the critical gain and critical time to be calculated. The derivative time constant (Td) is kept at zero while integral time constant (Ti) is retained at infinity. All this can be accomplished by altering the regulator gain (Ku) until continuous oscillations are met by the system (Table 1).
-
C.
PSO-BASED PID REGULATOR TUNING
The transformative computational procedure is the base of PSO optimization. Collective ventures in a school of fish and group of birds were the reason and inspiration which brought out a new technique of optimization, and the proponents of this technique were Kennedy and Eberhart in 1995. A very few numbers of parameters are assigned to the PSO algorithm in contrast to other metaheuristic algorithms. Initialization of a cluster of simulated birds is done with random locations Xi and velocities Vi. Every bird in the swarm is scattered arbitrarily in the first stage throughout the D dimensional search space. Every particle within the cluster starts adjusting its velocity and location under the inspection of the objective function, companion’s experiences and their own experiences. Every particle remembers its best position attained by it along with the best global place attained by any other particle in the swarm throughout the exploration of an optimal solution. XI = (xi1, xi2, …, xiD) is the representation of the ith particle. Gbest denoted by symbol g is a representative of the finest particle amid all particles in the population. PI = (pi1, pi2, …, piD) is represented as pbest and VI = (vi1, vi2, …, viD) is represented as velocity of the particle.
The particles are modified corresponding to the equations below:
In this, two positive acceleration coefficients c1 and c2 are used. A random number between 0 and 1 is produced by rand () operator, and n represents iteration. The new results of the speed and location in comparison with the earlier results from its own top experience are evaluated by Eq. (7). According to Eq. (14), the particle moves toward a novel location. Shi and Eberhart [14] proposed the concept of inertial weight which was missing in the primary algorithm suggested by Kennedy and Eberhart. The work reports that the global exploration is facilitated by large inertia weight factor while local exploration is facilitated by a small weight factor. Moreover, particle swarm optimization exploration potential can be enhanced for multi-dimensional issues by regulating the weight of inertia which was proposed by various scientists. Later in 1999 Clerc [15] presented his own version of PSO which resulted in guaranteed convergence of algorithm for inertial weight w = 0.729.
-
D.
EXECUTION OF PSO TUNED PID CONTROLLER
The PSO-based technique has been used using MATLAB/Simulink model as shown in Figs. 4 and 5.
Metaheuristic optimization can be implemented to alter PID regulator gains to guarantee the performance of the regulator at minimal functioning states. In Eq. (8), using the plant transfer functions Kp, Ki, and Kd are altered using PSO in offline mode. It primarily creates an initial horde of particles in a domain characterized by a matrix. Every particle denotes a unique result for PID coefficients. The values of these coefficients are varied on a scale between 0 and 100. As there are primarily three coefficients, we have to solve for three-dimensional space with velocity and position characterized by matrices of dimension 3× swarm size. For PSO algorithm, these values such as swarm size of 40, acceleration coefficients c1 = c2 = 1.494, and weight of inertia (w) which is reducing linearly from 0.9 to 0.4 as the number of iterations reach its maximum value are referred from the existing literature [17].
4 Results and Discussion
Using the traditional Ziegler–Nichols (Z-N) technique, the step response of the system creates large overshoot, instead superior performance is found with the execution of the PSO tuned PID controller. As compared to the Z-N technique, PSO has less overshoot and less settling time. The PSO process is simulated for 50 iterations. Collective step response is plotted for the Z-N method and PSO tuned controller with different performance index shown in Fig. 6. In Fig. 7 on applying step disturbance signal on the transducer side, PSO tuned PID controller attenuates the disturbance successfully and Z-N tuned PID controller takes more time to settle down.
Figure 8 denotes the plot between the fitness function value and the number of iterations. This plot shows how the value of performance index converges to minimum value with the increase in the number of iterations.
Relative outcomes for the PID regulators are shown beneath in Table 2 where the performance of step response is measured centered on the peak value, overshoot, settling time, rise time, and peak time.
Table 2 shows the relative effect in which step response parameters for different tuning techniques are evaluated, and PSO shows a significant enhancement in the values of overshoot values and settling time.
Table 3 exhibits the controller gains optimized for respective methods. For different performance indices used in the PSO algorithm, PID regulators show different optimized gains.
Table 3 exhibits the performance index used in the PSO algorithm and ZN method. It shows those different optimized gains that lead to different step response parameters.
5 Conclusion and Future Scope
As inferred from the results that PSO works well as compared to that of traditional Ziegler–Nichols method by attenuating the disturbance produced at the transducer side. PSO in comparison with Ziegler–Nichols method has less overshoot and less settling time, and because of this, it becomes a more efficient computational method. While a few parameters are to be adjusted in PSO, it has an edge over Ziegler–Nichols method and successfully gives optimal solutions. Moreover, indistinguishable performances are observed when PSO tuned PID regulators are optimized with various error-based performance indices. In relation to future scope other metaheuristic optimization techniques such as moth flame optimization (MFO) can be carried out for tuning of PID regulator as it has achieved a faster rate of convergence and less peak overshoot value. Here in this paper, third-order DC motor is used as a plant; however, higher-order DC motor model can also be considered for further research.
Abbreviations
- b :
-
Motor Viscous Friction Constant
- C(s):
-
Controller Transfer Function
- e :
-
Control Error Signal
- e V :
-
Back EMF
- G(s):
-
Plant Transfer Function
- i :
-
Armature Current
- IAE:
-
Integral Absolute Error
- ISE:
-
Integral Square Error
- ITAE:
-
Integral Time Absolute Error
- ITSE:
-
Integral Time Square Error
- J :
-
Moment of Inertia of Rotor
- K :
-
Motor Torque Constant
- Kt:
-
EMF Constant
- Kw:
-
EMF Constant
- K p :
-
Proportional Gain
- K i :
-
Integral Gain
- K d :
-
Derivative Gain
- L :
-
Inductance
- OF:
-
Objective Function
- PID:
-
Proportional Integral Derivative
- PSO:
-
Particle Swarm Optimization
- PV:
-
Process Variable
- r :
-
Input Signal
- R :
-
Armature Resistance
- T :
-
Torque
- y :
-
Output Signal
- Z-N:
-
Ziegler–Nichols
References
Tavakoli S, Sadeghi J, Griffin I, Fleming PJ (2016) PI controller tuning for load disturbance rejection using constrained optimization. Int J Dyn Control 6(1):188–199
Ogata K (1987) Modern control systems. Prentice Hall, Minneapolis, MN
Gaing Z-L (2004) A particle swarm optimization approach for optimum design of PID controller in AVR system. IEEE Trans Energy Convers 19(2):384–391
Zhao J, Li T, Qian J (2005) Application of particle swarm optimization algorithm on robust PID controller tuning. In: Advances in natural computation. Springer, Berlin/Heidelberg, pp 948–957
Mahony TO, Downing CJ, Fatla K (2000) Genetic algorithm for PID parameter optimization: minimizing error criteria. In: Process control and instrumentation. University of Stracthclyde, pp 148–153
Wang Q, Spronck P, Tracht R (2003) An overview of genetic algorithms applied to control engineering problems. In: Proceedings of the international conference on machine learning and cybernetics (IEEE Cat. No.03EX693)
Latha K, Rajinikanth V, Surekha PM (2013) PSO-based PID controller design for a class of stable and unstable systems. ISRN Artif Intell 2013:1–11
Vincent A, Nersisson R (2017) Particle swarm optimization based PID controller tuning for level control of two tank system. IOP Conf Ser Mater Sci Eng 263:052001
Kennedy J, Eberhart RC (1995) Particle swarm optimization. In: Proceedings of IEEE international conference on neural networks (Perth, Australia). IEEE Service Center, Piscataway, NJ, pp IV: 1942–1948
Hellerstein J (2004) Introduction and overview, Ch 1. In: Feedback control of computing systems. Wiley, New York City, NY, pp 3–28
Messner B, Tilbury D (2017) DC motor speed: system modeling. Accessed 01 Feb 2021. [Online]. Available: https://ctms.engin.umich.edu/CTMS/index.php?example=MotorSpeed§ion=SystemModeling
Zaccarian L (2012) Lecture notes, topic: “Dc motors: dynamic model and control techniques”. University of Rome, Rome
Ziegler JG, Nichols NB (1993) Optimum settings for automatic controllers. ASME J Dyn Syst Meas Control 115(2B):220–222
Shi Y, Eberhart R (1998) A modified particle swarm optimizer. In: Proceedings of the IEEE world congress on computational intelligence, pp 69–73
Clerc M (1999) The swarm and the queen: towards a deterministic and adaptive particle swarm optimization. In: Proceedings of the conference on evolutionary computation, pp 1951–1957
Bequette BW (2003) Process control: modeling, design, and simulation. Prentice Hall PTR, India
Solihin MI, Tack LF, Kean ML (2011) Tuning of PID controller using particle swarm optimization (PSO). Int J Adv Sci Eng Inf Technol 1(4):458
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Sharma, A., Sharma, V., Rahi, O.P. (2022). PSO Tuned PID Controller for DC Motor Speed Control. In: Suhag, S., Mahanta, C., Mishra, S. (eds) Control and Measurement Applications for Smart Grid. Lecture Notes in Electrical Engineering, vol 822. Springer, Singapore. https://doi.org/10.1007/978-981-16-7664-2_7
Download citation
DOI: https://doi.org/10.1007/978-981-16-7664-2_7
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-16-7663-5
Online ISBN: 978-981-16-7664-2
eBook Packages: EnergyEnergy (R0)