[ieee 2013 international conference on electrical engineering and software applications (iceesa) -...
TRANSCRIPT
A Particle Swarm Optimization Approach forOptimum Design of PID Controller for nonlinear
systemsTaeib Adel
Research Unit on Control,Monitoring and Safety of Systems (C3S)
High School ESSTTEmail: [email protected]
Chaari AbdelkaderResearch Unit on Control,
Monitoring and Safety of Systems (C3S)High School ESSTT
Email: [email protected]
AbstractβIn this paper,a novel design method for determiningthe optimal proportional-integral-derivative (PID) controller pa-rameters for Takagi-Sugeno fuzzy model using the particle swarmoptimization (PSO) algorithm is presented. In order to assistestimating the performance of the proposed PSO-PID controller,anew timedomain performance criterion function has been used.The proposed approach yields better solution in term of risetime, settling time,maximum overshoot and steady state errorcondition of the system.the proposed method was indeed moreefficient and robust in improving the step response.
I. INTRODUCTION
During the past decades,the process control techniquesin the industry have made great advances. Numerous con-trol methods such as adaptive control,neural control,andfuzzy control have been studied [1][2].(93-103). Amongthem,proportional-Integral-Derivative (PID) controllers havebeen widely used for speed and position control of variousapplications. Among the conventional PID tuning methods,the ZieglerNichols method [3] may be the most well knowntechnique,but,In general,it is often hard to determine optimalor near optimal PID parameters with the Ziegler-Nichols for-mula in many industrial plants [4][5]. For these reasons,Peoplehave made lots of research, and proposed some advancedPID control methods,such as expert PID control based onknowledge inference[6],self-learning PID control based onregulation, neural network PID control based on connectionmechanism[7],and intelligent PID control based on fuzzylogic[8,9]. Genetic algorithm (GA) has (566) been applied toself-tuning of PID parameters,too [10]. However,GA has thedisadvantages of premature and slow convergence rate,and theneed to set up many parameters. Recently,the computationalintelligence has proposed particle swarm optimization (PSO)[11, 12] as opened paths to a new generation of advancedprocess control. The PSO algorithm, proposed by Kennedyand Eberhart [11] in 1995,was an evolution computation tech-nology based on population intelligent methods. In comparisonwith genetic algorithm,PSO is simple,easy to realize and hasvery deep intelligent background. It is not only suitable for sci-entific research,but also suitable for engineering applications in
particular. Thus,PSO received widely attentions from evolutioncomputation field and other fields. Now the PSO has become ahotspot of research. Various objective functions based on errorperformance criterion are used to evaluate the performance ofPSO algorithms. Each objective function is fundamentally thesame except for the section of code that defines the specificerror performance criterion being implemented to optimize theperformance of a PID controlled system. Performance indicesused to estimate the best parameters of PID controller aregiven by:πΌππΈ,πππΈ,and πΌπ΄πΈ. The main aim of this researchpaper is to establish a methodology for optimal design ofPID controllers for Takagi-Sugeno (T-S) fuzzy model. the T-Sfuzzy model is widely used in many research areas becauseof its excellent ability of nonlinear system description. It hasa great capacity to approximate any nonlinear system [9].for this,a particle swarm optimization (PSO) algorithm areproposed to improve controller by adjusting transfer functionparameters. The rest of the paper is organized as follows. Insection 2,a brief review of the TS fuzzy model formulation isgiven. In section 3,describes the standard PSO.PID controllerdesign by the proposed PSO algorithm is described in Section4. Some simulation results is shown in Section 5. Finally,someconclusions are made in section 6.
II. T-S FUZZY MODEL OF NONLINEAR SYSTEM
We consider a class of nonlinear systems defined by:
π¦(π + 1) = π(π₯(π)) (1)
With the regression vector represented by:
π₯(π) = [π¦(π), π¦(πβ1), ..., π¦(πβπ), π’(π), π’(πβ1), ..., π’(πβπ)](2)
Here,k denotes the discrete time,and n define the numberof delayed output. Through this contribution, the unknownfunction π(π₯(π)) is approximated by a T-S fuzzy model whichis charities by rule consequents that are linear function of theinput variables [13]. The rule base comprises r rules of theform:
U.S. Government work not protected by U.S. copyright
π π : πππ₯1ππ π΄π1 πππ πππ₯π ππ π΄
ππ π‘βππ
π¦(π + 1) = ππ1π¦(π) + ...+ ππππ¦(π β π)+ππ1π’(π) + ...+ ππππ’(π β π)
(3)
Where π π denotes the ππ‘β fuzzy inference rule:
β π is the number of inference rules;β π΄π
π(π = 1...π ) are fuzzy sets;β π’(π) is the system input variable;β π¦(π) is the system output;β ππ1, ..., πππ, ππ1, ..., πππ are coefficient of the ππ‘β subsys-
tem;β π₯(π) = [π₯π, ..., π₯π ] are some measurable system variables.
Let ππ (π₯(π)) be the normalized membership function of the
inferred fuzzy set π΄π, where π΄π =π β
π=1
π΄ππ and
πβπ=1
ππ = 1.The
output of T-S fuzzy model is computed:
π¦(π) =πβ
π=1
ππ[ππ1π¦(π) + ...+ ππππ¦(ππ β π)
+ππ1π’(π) + ...+ ππππ’(π β π)](4)
III. ESTIMATION METHOD OF RECURSIVE LEAST SQUARES
(RLS)
For nonlinear systems the online adaptation is necessary toobtain a model able to continue the system in its evolution.The system described by can also be rewritten as:
π¦(π) = ππ‘Ξ¦(π β 1) (5)
This is a regression form, with π being a system parametervector and Ξ¦ a regression vector. It should be noted that thesystem (5) is in general nonlinear but it is linear with respectto its unknown parameter vectors. Based on parameterization(5), the identification algorithm giving estimates π(π) of π(π)can be obtained using the normalized least-squares algorithm[14].We define:
ππ(π β 1) = [ππ π¦(π β 1)... πππ¦(π β π)πππ’(π β 1)... πππ’(π β π) ππ]
(6)
ππ = [ππ1...πππ ππ1...πππππ] (7)
π (π β 1) =[ππ‘1 (π β 1) ππ‘
2 (π β 1) ...ππ‘π (π β 1)
]π‘(8)
The system described by (4) can also be rewritten as:
ππ (π) = ππ (π β 1)β ππ (π β 1)ππππ‘π (π)ππ (π β 1)
1 + ππ‘π (π)ππ (π β 1)ππ (π β 1)
(9)
IV. PID CONTROLLER
Fig. 1. A common feedback control system
The feedback control system is illustrated in Fig. 1 whereyr,y are respectively the reference and controlled variables.The PID controller is used to improve the dynamic responseas well as to reduce or eliminate the steady-state error. The
derivative controller adds a finite zero to the open-loop planttransfer function and improves the transient response[15]. Theintegral controller adds a pole at the origin, thus increasingsystem type by one and reducing the steady-state error due toa step function to zero. The PID controller transfer functionis
πΆ(π§) = ππ+ πππ§
π§ β 1+ ππ
π§ β 1
π§(10)
where ππ,ππ and ππ are respectively the proportional, integraland derivative gains parameters of the PID controllers. Wecan also rewrite as Controller design attempts to minimize thesystem error produced by certain anticipated inputs[17]. Thesystem error is defined as the difference between the desiredresponse of the system and its actual response. Performancecriteria are mainly based on measures of the system error.Basically, PID controller design method using criterion astabulate in TABLE I.
A disadvantage of the πΌπ΄πΈ and πΌππΈ criteria is that its
TABLE IPERFORMANCE ESTIMATION OF PID CONTROLLER
Name of Criterion FormulaIntegral of the Absolute Error (IAE) πΌπ΄πΈ = β£π(π)β£
Integral of Square Error (ISE) πΌππΈ =β
π(π)2
Integral of Time weighted Square Error (ITSE) πΌπππΈ =β
π β π(π)2
minimization can result in a response with relatively smallovershoot but a long settling time because πΌπ΄πΈ and πΌππΈperformance criterion weights all errors equally independentof time. Although the πΌπππΈ performance criterion weightserrors with time, the derivation processes of the analyticalformula are complex and time consuming. In this paper,anew performance criterion in the time domain is proposedfor evaluating the PID controller. A set of good controlparameters ππ,ππ and ππ can yield a good step response thatwill result in performance criteria minimization in the timedomain. These performance criteria in the time domain includethe overshootππ,rise time ππ,settling time ππ ,and steady-stateerror πΈπ π . Therefore,a new performance criterion is defined asfollows: time and settling time.
π (π) = (1β exp(βπ½))(ππ + πΈπ π ) + (exp(βπ½))(ππ β ππ)(11)
where πΎ = [ππ ππ ππ] and π½ is the weighting factor.
A. PARTICLE SWARM OPTIMIZATION
Particle Swarm Optimization, first introduced by Kennedyand Eberhart,is one of optimization algorithms. It was de-veloped through simulation of simplified social system, andhas been found to be robust in solving continuous nonlinearoptimization problems [16]. The PSO technique can gener-ate a high quality solution within shorter calculation timeand stable convergence characteristic than other stochasticmethods. PSO is a population based search process whereindividuals, referred to as particles,are grouped into a swarm.
Each particle in swarm represents a candidate solution tothe optimization problem. In PSO technique,each particle isflown through the multidimensional search space,adjusting itsposition in search space according to its own experience andthat of neighboring particles. A particle therefore makes useof best position encountered by itself and that of its neighborsto position itself toward an optimal solution. The effect isthat particles fly toward a minimum,while still searchinga wide area around the best solution. The performance ofeach particle (i.e., the closeness of a particle to a globaloptimum) is measured using a predefined fitness function,which encapsulates the characteristics of the optimizationproblem. As example, the ππ‘β particle is represented as π₯π =(π₯π,1, π₯π,2, ..., π₯π,π) in the gdimensional space. The best previ-ous position of the ππ‘β particle is recorded and representedas ππππ π‘π = (ππππ π‘π,1, ππππ π‘π,2, ..., ππππ π‘π,π). The index ofbest particle among all particles in the group is representedby the gbestd. The rate of the position change (velocity) forparticle j is represented as π£π = (π£π,1π£π,2, ..., π£π,π).The modifiedvelocity and position of each particle can be calculated usingthe current velocity and distance from ππππ π‘π,πto ππππ π‘π asshown in the following formulas:
π£ππ(π + 1) = π€π£ππ(π) + π1 β π1(ππππ π‘ππ(π)β π₯ππ(π))+π2 β π2(ππππ π‘ππ(π)β π₯ππ(π))
(12)π₯ππ(π + 1) = π₯ππ(π) + π£
ππ(π + 1) (13)
Where:β ππππ π‘π is ππππ π‘ of particle π.β ππππ π‘π is ππππ π‘ of the group.β π1, π2 are two random numbers in the interval [0, 1].β π1, π2 are positive constants,β π€ is the Inertia weight,is a parameter used to control the
impact of the previous velocities on the current velocity.It influences the tradeoff between the global and localexploitation abilities of the particles. Weight is updatedas π = πmax β
(πmaxβπmin
ππ‘ππmax
)ππ‘ππ whereπmin, πmax π‘
and ππ‘ππmax are minimum,maximum values of πππ‘ππ,the current iteration number,and pre-specified maximumnumber of iteration cycles,respectively.
B. IMPLEMENTATION OF A PSO-PID CONTROLLER
In this paper,a PID controller using the PSO algorithm wasdeveloped to improve the step transient response of nonlinearsystem. It was also called the PSO-PID controller. The PSOalgorithm was mainly utilized to determine three optimalcontroller parameters ,and such that the controlled systemcould obtain a good step response output. For our case ofdesign,we had to tune all the three parameters of PID suchthat it gives the best output results or in other words we haveto optimize all the parameters of the PID for best results. Herewe define a three dimensional search space in which all thethree dimensions represent three different parameters of thePID. Each particular point in the search space represent aparticular combination of [ππ ππ ππ] for which a particularresponse is obtained The performance of the point or the
combination of PID parameters is determined by a fitnessfunction or the cost function. This fitness function consists ofseveral component functions which are the performance indexof the design. The point in the search space is the best pointfor which the fitness function attains an optimal value. For thecase of our design,we have taken four component functionsto define fittness function. The fittness function is a functionof steady state error, peak overshoot, rise time and settlingtime. However the contribution of these component functionstowards the original fittness function is determined by a scalefactor that depends upon the choice of the designer. For thisdesign the best point is the point where the fitness functionhas the minimal value.
C. Proposed PSO-PID Controller
the PSO-PID controller for searching the optimal controllerparameters,πΎπππ, and ,ππ with the PSO algorithm. Each indi-vidual πΎ contains three members ππ, ππandππ. Its dimensionis π β 3. The searching procedures of the proposed PSO-PIDcontroller were shown as below.Step 1
β Specify the lower and upper bounds of the three controllerparameters and initialize randomly the individuals of thepopulation including searching points, velocities, ππππ π‘,andππππ π‘.
β Determine the lower bound and the upper Boundπ πππ₯π ,π πππ
π ,πΎπππ₯π and πΎπππ
π .
step 2
β Evaluate the objective criterion and calculate the valuesof the four performance criteria ππ,πΈπ π ,π‘π andπ‘π
step 3
β Compare the individual fitness of each particle to itsprevious ππππ π‘. If the fitness is better, update the fitnessas ππππ π‘.
step 4
β Modify the velocity π£ of each individual πΎ according to(8).
step 5
β if π£π+1ππ
β» π πππ₯π ,then π£π+1
ππ= π πππ₯
π
β if π£π+1ππ
βΊ π ππππ ,then π£π+1
ππ= π πππ
π
Step 6
β Modify the member position of each individual πΎ ac-cording to (9).such that πΎπππ
π βͺ― πΎπ+1ππ
βͺ― πΎπππ₯π
step 7
β If the number of iterations reaches the maximum, thengo to Step 8. Otherwise, go to Step 2.
Step 8
β The individual that generates the latest is an optimalcontroller parameter.
V. SIMULATION RESULTS
This section presents a simulation example to shown an ap-plication of the proposed control algorithm and its satisfactoryperformance. The nonlinear system is written as the followingrecursive form:
π¦(π) = πβ²1 sin(π¦(π β 1)) + π
β²2π¦(π β 2) + π
β²3π’(π β 2)π¦(π β 3)
+πβ²1π’(π β 1) + π
β²2(tanh(0.7π’(π β 3)2))
(14)With π
β²1 = 0.4,π
β²2 = 0.3,π
β²3 = 0.1,π
β²1 = 0.6 and π
β²2 = 1.8.
The input signal applied to plant (14) is a finite sequenceof uniformly distributed random variables with range [-2, 2].The consequent parameters of each rule Takagi-Sugeno fuzzymodel are computed from equation (5) and adapted by usingπ πΏπ algorithm with for gueting factor π = 0.9 For the ruleπ:
π π : ππ π¦(π β 1) ππ π΄π, πππ π¦(π β 2) ππ π΅π
πππ π¦(π β 3) ππ πΆπ, , πππ π’(π β 1) ππ π·π
ππππ’(π β 2) ππ πΌππ‘βππ π¦π(π) = βππ1π¦(π β 1)β ππ2π¦(π β 2) +βππ3π¦(π β 3)
+ππ1π’(π β 1) + ππ2π’(π β 2)(15)
The system response is shown in figure(1), the proposedmethod can guarantee a good control performance.
Fig. 2. system response
TABLE IIPERFORMANCE ESTIMATION OF PID CONTROLLER
π½ 1 1.5Swarm size 100 100
kp 9.6853 7.5342ki 3.9095 2.4439kd 9.1067 8.2874
overshoot 0.2180 0.0250rise time 0.4595 0.4635
settling time 0.5629 0.5678
VI. CONCLUSIONS
This paper presents a novel design method for determiningthe PID controller parameters using the PSO method forTakagi-Sugeno fuzzy model. The proposed method integratesthe PSO algorithm with the new performance criterion into aPSO-PID controller. Through the simulation,the results showthat the proposed controller can perform an efficient searchfor the optimal PID controller parameters.
REFERENCES
[1] A. visioli, Tuning of PID controllers with fuzzy logic, proc. Inst. Elec,proc. Inst. Elec. Eng. contr. theory applicat-vol, 148. no-1, pp-1-8, jan.2008.
[2] T. Kawabe and T. Tagami,A real coded genetic algorithm for matrixinequality design approach of robust PID controller with two degrees offreedom,in Proc. 12π‘β IEEE Int. Symp. Intell. Contr, Istanbul, Turkey,July 1997, pp. 119124. 1993.
[3] K Ogata, Modern Control Systems, University of Minnesota, PrenticeHall, 1987.
[4] A. Visioli,Tuning of PID controllers with fuzzy logic,Proc. Inst. Elect.Eng. Contr. Theory Applicat, vol. 148, no. 1, pp. 18, Jan. 2001.Conference, Vol. 1, 1999.
[5] R. A. Krohling and J. P. Rey, Design of optimal disturbance rejectionPID controllers using genetic algorithm, IEEE Trans. Evol, Comput, vol.5, pp. 7882, Feb. 2001.
[6] Conradie A, Miikkulainen R, and Aldrich C, Adaptive Control UtilizingNeural Swarming, In Proceedings of the Genetic and EvolutionaryComputation Conferences, USA, 2002.
[7] Hossein Shayeghi, Heidar Ali Shayanfar and Aref Jalili, Multi StageFuzzy PID Load Frequency Controller in a Restructured Power System,Journal of Electrical Engineering, Vol. 58, No. 2, pp. 61-70, 2007.
[8] Saban Cetin, and Ozgr Demir, Fuzzy PID Controller with CoupledRules for a Nonlinear Quarter Car Model, World Academy of Science,Engineering and Technology Vol. 41, pp. 238-241, 2008.
[9] Aye Aye Mon, Fuzzy Logic PID Control of Automatic Voltage RegulatorSystem, Proceedings of PWASET, Vol. 38, Feb, 2009.
[10] Cipperfield A. Flemming P, and Fonscea C, Genetic Algorithms forControl System Engineering, in Proceedings Adaptive Computing inEngineering Design Control, pp- 128-133,1994.
[11] Kennedy J. and Eberhart C, Particle Swarm Optimization, Proceedingsof the IEEE International Conference on Neural Networks, Australia,pp. 1942-1948,1995.
[12] Oliveira, P. M, Cunha, J. B, and Coelho,J.o.P,Design of PID controllersusing the Particle Swarm Algorithm, Twenty-First IASTED InternationalConference: Modeling, Identification, and Control (MIC 2002), Inns-bruck, Austria. 2002.
[13] I. Lagrat, H. Ouakka, and I. Boumhidi,Adaptive control of a class ofnonlinear systems based on Takagi-Sugeno fuzzy model, ICTIS 07, Fez,Morocco, 3-5 April 2007.
[14] L. Praly, Robustness of indirect adaptive control based on pole placementdesign. Proc, Of the 1st IFAC Workshop on adaptive systems in controland signal processing, San Francisco, USA.1983.
[15] Mahmud Iwan Solihin, Lee Fook Tack and Moey Leap Kean,Tuningof PID Controller Using Particle Swarm Optimization (PSO), Schoolof Engineering, UCSI University No. 1, Jalan Menara Gading, UCSIHeights, 56000. 14 - 15 January 2011.
[16] S.J.Qin & T.A.Badgwell, A survey of industrial model predictive controltechnology, Control Engineering Practice, No. 11, pp733- 764, 2003.
[17] S. Morkos, H. Kamal,Optimal Tuning of PID Controller using AdaptiveHybrid Particle Swarm Optimization Algorithm,Int. J. of Computers,Communications and Control, ISSN 1841-9836, 2012.