
International Journal of Scientific & Engineering Research, Volume 5, Issue 8,August-2014 24 ISSN 2229-5518 Automatic PID Controller Parameter Tuning Using Bees Algorithm Moslem Amirinejad, Mahdiyeh Eslami, Ali Noori Abstract— Despite numerous advancements in process control methodologies,Proportional–Integral–Derivative (PID) controller is still the mostefficient and widely used feedback control strategy. This is due to itssimplicity and satisfactory control performance.This paper presents an efficient and fast tuning method based on a bees algorithm (BA) structure to find the optimal parameters of the PID controller so that the desired system specifications are satisfied.To demonstratethe effectiveness of presented method, the step responses of closed loop systemwere compared with that of the existing methods in the literature. Simulation results indicatethat the performance of the PID controlled system can be significantly improved by the BA-based method. Index Terms— Bees algorithm, PID controller, PID tuning, parameter optimization, Ziegler and Nichols. —————————— —————————— 1 INTRODUCTION ROPPORTIONAL–integral–derivative (PID) control has for tuning parametersof PID controller. The conventional PID P been widelyapplied in industry—more than 90% of the tuning techniques includeZ–N, Cohen Coon, and relay feed- applied controllersare PID controllers [1–6]. PID controller back methods [7, 14]. The modern techniques are basedon arti- wasintroduced in 1910 and its use and popularity had grown ficial intelligence techniques such as neural network, particularlyafter the Ziegler–Nichols empirical tuning rules in fuzzylogic and evolutionary computation; these are the most 1942 [2, 7]. recenttechniques [15]. The developmentin artificial intelligence and digital technolo- Recently, many attempts have been made by several re- gy have resultedin many intelligent control schemes such as searchersto tune the PID controller parameters using various fuzzy logic control [8, 9], neural network control [10] and EAs, suchas genetic algorithm (GA), covariance matrix adap- adaptive control [11, 12]. But no other technique could replace tation evolutionstrategy (CMAES), particle swarm optimiza- PID algorithmand as mentioned more than 90% of industrial tion (PSO), differentialevolution (DE), tribes algorithm (TA), controllers are still based on PIDcontrol. ant colony optimization(ACO), and discrete binary particle In the absence of the derivativeaction, proportional–integral swarm optimization (DBPSO) [16- 26]. (PI) control is also broadly deployed,since in many cases the AI-based evolutionary computational techniques can deter- derivative action cannot significantlyenhance the performance minethe most optimal sets of controller gains based on a given or may not be appropriate forIJSER thenoisy environment. Another objectivefunction in an iterative manner from thousands of special form of PID controlwithout the integral action, propor- possible alternatesolutions that best fit the designer’s require- tional–derivative (PD) controlis also applied. Unlike the pre- ments. But theperformance of different methods may signifi- vious two cases, however,PD control cannot achieve zero cantly vary in differentapplications.As well known that both steady-state error subject to loaddisturbances, which limits its exploration and exploitation are necessary for the optimiza- applications [1–4]. tion algorithms, such as GA, PSO, and ACO and so on. In Due to the prevailing applications of PI/PD/PID control, re- these optimization algorithms, the exploration refers to the searchon tuning PI/PD/PID controllers has been of much in- ability to investigate the various unknown regions in the solu- terest inthe past decades [1–7, 13]. tion space to discover the global optimum. While, the exploita- The optimally combined three terms functioning of PID con- tion refers to the ability to apply the knowledge of the previ- trollercan provide treatment for both the transient and steady ous good solutions to find better solutions [27]. In practice, the stateresponses. In fact, optimal control performance can only exploration and exploitation contradict with each other, and in beachieved after identifying the finest set of three gains, that order to achieve good optimization performance, the two abil- is, proportionalgain ( K p ), integral gain ( Ki ) and derivative ities should be well balanced. gain ( Kd ). Manyapproaches have been reported in literature In this study, the bees algorithm is applied on overall system to obtain the design objectives by adjusting the controller pa- ———————————————— rameters at each iteration, repetitively until the desired closed- • Moslem Amirinejad, [email protected] loop system performance is achieved. The performance of the • Mahdiyeh Eslami, [email protected] closed-loop system can defined in terms of rise time, over- • Ali Noori, [email protected] Department of Electrical Engineering Science and Research Branch, Islam- shoot, settling time and steady state error.In general, the sys- ic Azad University, Kerman, Iran. tem with fast rise and settling time under no steady-state error and almost zero overshoot is desired. Hence, in this study to provide a desired performance, the integratedsquared error (ISE), settling time and overshoot is minimized by using BA. The merits of the proposed controller are illustrated by con- sidering the third order and forth order systems.The superior IJSER © 2014 http://www.ijser.org International Journal of Scientific & Engineering Research, Volume 5, Issue 8,August-2014 25 ISSN 2229-5518 performance of the BA is due to its ability to simultaneously ( OS ), settling time ( ts ) and rise time ( tr ) arenormally con- refine a local search, while still searching globally. sidered significant where the benefit of fastersystems, necessi- The rest of paper is organized as follows. Section 2 explains tates minimum possible values for them.For tuning PID con- the PID controller. Section 3 presents the optimization algo- trollers that is finding the optimumgains for the best perfor- rithm. Section 4, shows simulation results and finally Section 5 mance, one or a weightedcombination of these criteria is em- concludes the paper. ployed. While weights andnumber of indices are diversely reported in the literature, it isgenerally accepted that time weighted indices are moreappropriate as the errors occurring ONTROLLER 2 PID C later in the transientresponse are penalized heavily. In this A PID controller is a combination of a proportional, anintegral paper, selection of anyof these criteria has been constrained by and a derivative controller, integrating the mainfeatures of all benchmarkproblems, though ISE index is calculated and re- three. Fig. 1 demonstrates a simplified blockdiagram of a plant portedindependently to make comparisons more sensible. controlled by a PID. The output of a PIDcontroller, which is the processed error signal, can bepresented as: ∞ 3 BEES ALGORITHM ut()=++ + et () + etdt () +et () (1) pi∫ d BA is an optimization algorithm inspired by the natural for- 0 aging behavior of honey bees to find the optimal solution. Figure 2 shows the pseudo-code for the algorithm in its sim- where K p , Ki and Kd are the proportional, integral and plest form. The algorithm requires a number of parameters to derivative gains, respectively. be set, namely: Number of scout bees (n), number of sites se- lectedout of n visited sites (m), number of best sites out of m selected sites (e), number of bees recruited for beste sites (nep), rt() et() ut() yt() number of bees recruited for the other (m-e) selected sites Cs() Ps() (nsp), initial size of patches (ngh) which includes site and its neighborhood and stopping criterion. The algorithm starts with the n scout bees being placed randomly in the search space. The fitnesses of the sites visited by the scout bees are evaluated in step 2. Figure 1. A plant controlled by a PID controller 1. Initialise the solution population. In general, the objective of PID controllers like any othercon- 2. Evaluate the fitness of the population. troller is to provide stability as well as reference trackingand 3. While (stopping criterion is not met) disturbance rejection, which are all design criteriarelated to //Forming new population. steady domain of response.IJSER Different indices havebeen sug- 4. Select sites for neighbourhood search. gested to evaluate the performance of a controllerbased on the 5. Recruit bees for selected sites (more bees for the above objectives. The most common ones arethe integrated best e sites) and evaluate fitnesses. absolute error (IAE), integrated squared error(ISE), integrated 6. Select the fittest bee from each site. time squared error (ITSE), and integrated time absolute error 7. Assign remaining bees to search randomly and (ITAE). These indices are normallycalculated under step test- evaluate their fitnesses. ing input in the time domain as: 8. End While Fig 2. Pseudo code ∞∞ IAE=−=∫∫ r() t y () t dt e () t dt In step 4, bees that have the highest fitnesses are chosen as 00 “selected bees” and sites visited by them are chosen for neigh- ∞ borhood search. Then, in steps 5 and 6, the algorithm conducts ISE= ∫ e2 () t dt searches in the neighborhood of the selected sites, assigning 0 more bees to search near to the best e sites. The bees can be ∞ chosen directly according to the fitnesses associated with the ITSE= te2 () t dt (2) sites they are visiting. Alternatively, the fitness values are ∫ used to determine the probability of
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages5 Page
-
File Size-