- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents
ISRN Chemical Engineering
Volume 2012 (2012), Article ID 693545, 11 pages
Tuning and Retuning of PID Controller for Unstable Systems Using Evolutionary Algorithm
1Department of Electronics and Instrumentation Engineering, St. Joseph’s College of Engineering, Chennai 600 119, India
2Department of Aerospace Engineering, Division of Avionics, MIT Campus, Anna University, Chennai 600 044, India
Received 9 January 2012; Accepted 26 February 2012
Academic Editors: B. Grgur and S. Rodríguez-Couto
Copyright © 2012 V. Rajinikanth and K. Latha. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Proportional + integral + derivative (PID) controllers are widely used in industrial applications to provide optimal and robust performance for stable, unstable, and nonlinear processes. In this paper, particle swarm optimization (PSO) algorithm is proposed to tune and retune the PID controller parameter for a class of time-delayed unstable systems. The proposal is to search the optimal controller parameters like , , and by minimising the cost function. The integral of squared error (ISE) criterion is considered as the cost function, which guides the PSO algorithm to get the optimised controller parameters. The procedure for PID parameter tuning and retuning is presented in detail. A comparative study is done with the conventional PID tuning methods proposed in the literature. The simulation results show that the PSO-based PID controller tuning approach provides improved performance for the setpoint tracking, load disturbance rejection, error minimization, and measurement noise attenuation for a class of unstable systems.
Poportional integral derivative (PID) controllers are widely used in industrial applications to provide optimal and robust performance for stable, unstable, and nonlinear processes. It can be easily implementable in analog or digital form. Further, it supports tuning and online retuning based on the performance requirement of the process to be controlled.
Open-loop unstable systems are mostly observed in chemical process industries and for economical and/or safety reasons, the chemical process loops to be operated in unstable steady state . For unstable systems, there exist a minimum and maximum values of controller gain, and the average of this limiting value is considered to design the controller to stabilize the system. The increase in time delay in the process narrows down the limiting value and it restricts the performance of the closed-loop system under control. In addition, these systems show unusual overshoot or inverse response due to the presence of negative or positive zeros . The literature gives details about various theoretical studies on fine tuning of PID controllers for open-loop unstable system [3–8]. Most of the controller tuning approaches proposed for unstable system may require an approximate first or second order transfer function model with delay. Further, for real time application, the model may not be readily available in practice or may be changing due to uncertainty . The model-based controller tuning requires complex computations to identify the controller parameters. To overcome this, it is necessary to use soft computing based model independent controller autotuning methods.
Optimization is a powerful tool for finding the controller parameters. Soft computing-based PID controller parameter optimization is widely addressed by the researchers. Wang et al. have proposed a PSO-based autotuning of PID controller on a stable system . Jain and Nigam have attempted a PD-PI controller tuning for a stable second order system . Kim et al. have discussed the PID controller tuning for a stable system using biologically inspired algorithms [12, 13]. Ali and Majhi have proposed PID controller tuning for a class of time-delayed stable systems using bacterial foraging optimization (BFO) algorithm . Korani et al. presented a comparative analysis on PSO, BFO, and hybrid algorithm-based PID controller for a stable system . Rajinikanth and Latha have discussed the heuristic algorithm-based PID controller tuning for unstable system with time delay [16–18].
In this work, the PID controller parameter tuning is proposed for unstable system using particle swarm optimization (PSO) algorithm introduced by Kennedy and Eberhart . PSO is a biologically inspired algorithm, and it is successfully used for engineering applications due to its high computational efficiency, easy implementation and stable convergence. Another advantage of PSO technique is that it does not need detailed mathematical description of the process and along with the controller tuning, it also supports the retuning of controller parameters, if necessary. In this work, to evaluate the performance of the proposed method, a simulation study is carried out using a class of unstable system models.
This paper is organized as follows: principle of PSO algorithm is discussed in Section 2, the basics of PID controller and implementation of PSO to optimize PID parameter is presented in Section 3. In Section 4, simulated results obtained for a class of unstable systems are shown. At the end, conclusion of the present research work is given in Section 5.
2. Particle Swarm Optimization
Particle swarm optimization (PSO) algorithm is a population-based evolutionary computation technique developed by the inspiration of the social behavior in bird flocking or fish schooling. It attempts to mimic the natural process of group communication of individual knowledge, to achieve some optimum property. In this method, a population of swarm is initialized with random positions and velocities . At the beginning, each particle of the population is scattered randomly throughout the entire search space and with the guidance of the performance criterion, the flying particles dynamically adjust their velocities according to their own flying experience and their companions flying experience. Each particle remembers its best position obtained so far, which is denoted as pbest (). It also receives the globally best position achieved by any particle in the population, which is denoted as gbest () [20–25].
The updated velocity of each particle can be calculated using the present velocity and the distances from pbest and gbest. The updated velocity and the position are given in (1) and (2), respectively. Equation (3) shows the inertia weight where and are positive constants. is the cognitive learning rate and is the global learning rate. and are random numbers in the range 0−1. The parameter “” is inertia weight that increases the overall performance of PSO-based search. The larger value of can favor the global wide-range search, and the lower value of implies a higher ability for local nearby search.
2.1. Steps in PSO-Based PID Controller Optimization
Step 1. % Assign values for the PSO parameters %
Initialize: swarm () and step size; learning rate () dimension for search space (); inertia weight ();
% Initialize random values and current fitness %
= rand (); = rand (); current fitness = 0 * ones ().
Step 2. % Initialize Swarm Velocity and Position %
Current position = 10 * (rand ()−0.2),
current velocity = 0.5 * rand ().
Step 3. Evaluate the objective function of every particle and record each particle’s and. Evaluate the desired optimization fitness function in D-dimension variables.
Step 4. Compare the fitness of particle with its and replace the local best value as given below.
If current fitness () < local best fitness ();
Then local best fitness = current fitness;
local best position = current position ();
% Same operation to be performed for %.
Step 6. Steps 2–5 are repeated until the predefined value of the function or the number of iterations has been reached. Record the optimized , , and values.
Step 7. Perform closed-loop test with the optimised values of controller parameters and calculate the time domain specification for the system.
If the values are within the allowable limit, consider the current , , and values.
Otherwise perform the retuning operation for , by replacing the optimised numerical values for and .
3. PID Controller Tuning and Retuning
Industrial PID controllers are usually available as a packaged form, and to perform well with the industrial process problems, the PID controller requires optimal tuning. Figure 1 shows the diagram of a simple closed-loop control system. In this structure, the controller () has to provide closed-loop stability, smooth reference tracking, shape of the dynamic and the static qualities of the disturbance response, reduction of the effect of supply disturbance and attenuation of the measurement noise effect . In this study reference tracking, load disturbance rejection, and measurement noise attenuation are considered.
Closed-loop response of the system with setpoint , load disturbance , and noise can be expressed as (4) and(5) where the complementary sensitivity function and sensitivity function of the above loop are represented in (6) and (7), respectively
The final steady state response of the system for the setpoint tracking and the load disturbance rejection is given in (8) and (9), respectively, where is amplitude of the reference signal and is disturbance amplitude.
To achieve a satisfactory (∞) and (∞), it is necessary to have an optimally tuned PID parameters. From the literature it is observed that to get a guaranteed robust performance, the integral controller gain “” should have an optimised value.
In this study, a noninteracting form of PID () controller structure is considered. For real control applications, the feedback signal is the sum of the measured output and measurement noise component. A low pass filter is used with the derivative term to reduce the effect of measurement noise.
The PID structures are defined as the following: where , , and Figure 2 shows the block diagram of PID parameter optimization using PSO algorithm. Minimizing the cost function generates the controller parameters. The error criterion is considered as the cost function, and the values of , , and are continuously adjusted, until the error of the closed-loop system is minimum. Equations (14)–(16) show the normally considered error criterion in control system to evaluate the performance of controller. where error,reference input, and measured variable.
In this work, ISE (15) is considered as the cost function. For unstable systems, the ISE value may be large due to excessive overshoot in the process output, which may lead to slow convergence. Employing an approximate actuator model between the controller and the process will enhance this state. After getting the optimised controller parameters, the time domain parameters like rise time, overshoot and settling time in the response are then analysed. If the values are within the specified or acceptable limit, then the current controller parameter is considered for the system. Otherwise a retuning operation is carried out for the integral term () by replacing the optimised numerical values for and , to enhance the present performance of the PID controller.
4. Results and Discussions
To study the closed-loop performance of the unstable process with PSO-tuned PID controller, practical examples from literature are considered.
4.1. Process 1
The first order plus delayed time (FOPDT) unstable process with the following transfer function model is considered: Many studies have proposed different PID settings for the above model and the values are clearly presented in the literature [1, 3].
In this study, the optimization algorithm is initiated with the following values. Dimension of search space is three (i.e., , , and ); number of swarm and bird step is considered as ten; the cognitive () and global () search parameter are assigned the value of 2, the minimum () and maximum () inertia weight are set to be 0.2 and 1.2 respectively. The search space for , , and is defined as 30% of the three dimensional space with the positive and negative values. The maximum iteration for generation is set to 400.
PSO-based PID tuning is proposed with the method as in Figure 2. The final convergence of the , and is shown in Figure 3. The ISE-based controller parameter search value has converged at the 136th iteration, and the final PID parameters are tabulated in Table 1.
Figure 4 shows the value of the cost function (ISE) with respect to the iteration. When the iteration increases, the values of controller parameters will be optimized, which may help to reduce the ISE value of the process output. When the controller parameter reaches the final value, the reduced cost function for setpoint tracking has a value of 11.25 (Table 2).
The process is then controlled with the optimized values of controller parameters, and the performance of the controller is tested in terms of the overshoot, settling time and the error criterion. From Table 2, it is observed that the overshoot and the settling time for the present controller parameter are high. A retuning operation is then carried out by taking the overshoot and/or the settling time of the closed-loop process as the reference. During the retuning operation, the proportional and derivative controllers are replaced by its numerical values. In the retuning operation, the number of parameter to be optimized is one (i.e., the dimension of the search space is one). Initially the retuning is performed by taking the overshoot into account. The optimized PID gives an overshoot of 1.2632. During the retuning, the integral controller gain () is adjusted until the considered performance criterion is minimized. Figure 5 shows the retuned value of the , and the final value is presented in Table 1. The retuned PID parameter is then considered as PIDr1. A retuning operation is also performed by considering the settling time. The retuned controller parameter is presented as PIDr2. From Table 2, it is observed that the PSO-based PID tuning and retuning method give a reduced overshoot and settling time compared to the conventional tuning methods available in literature. From Figure 6, it is observed that the retuning operation can improve the closed-loop performance of the process.
Figure 7 shows the servo response of the previous work reported in literature . Figure 8 shows the servo and regulatory operation for Process 1. For reference tracking, a unity step signal is applied as the setpoint. For regulatory operation, a load disturbance of 0.2 (20% of setpoint) is introduced at 100 sec. Figure 8 shows that the proposed method provides a smooth setpoint tracking and load disturbance rejection.
The robustness of the PSO-based PID controller is then tested with the measurement noise introduced in the feedback path. A band-limited white noise with a noise power of 0.001 is introduced along with the feedback signal and from the result it is observed that the proposed controller can perform well even in the noisy environment. Figure 9 shows the servo response of the PSO-tuned PID controller with and without the measurement noise.
4.2. Process 2
Isothermal continuous stirred tank reactor (CSTR) considered by Liou and Chien  has the transfer function model;
The values of the operating conditions are given by flow rate lit/sec, volume lit, lit/s, and lit/mol, concentration, ( mol/lit. Measurement delay is 20 sec. Linearization of the model equation around this operating condition mol/lit, gives the following unstable transfer function model:
For the above transfer function model, PSO-based PID tuning is proposed with the method as in Figure 2. The controller parameters are converged at the 97th iteration, and controller values are , , and (with ). The overshoot of the present controller setting is large, and a retuning operation is performed for the integral controller gain with minimising of the overshoot. The search value is converged at the 49th iteration, and the retuned value of the is 0.0147. Figure 10 shows that the retuned PID (PIDr1) provides improved performance.
The regulatory response value is recorded with a disturbance value of 0.2 (20% of setpoint) introduced at 500 s. From the performance measure values in Table 3, it is observed that the retuned PID (PIDr1) structure provides reduced ISE and IAE than PSO tuned PID.
The robustness of the PID controller is then tested with a band-limited white noise with a noise power of 0.001and is introduced along with the feedback signal. From Figure 11, it is observed that the proposed controller provides a smooth setpoint tracking in the noisy environment.
4.3. Process 3
The bioreactor plays a major role in most of the biotechnological and chemical industry. It can be defined as a reactor tank to execute a number of biological reactions to create a large amount of intermediate and final products. In recent years, biosynthesis process is widely utilised to convert the living cells (biomass) into marketable chemical, pharmaceutical, food, and beverage products. In biosynthesis, the biomass consumes nutrients from the substrate (feed) to cultivate and produce more cells and important products. During this operation the bioreactor is kept under a controlled environment with constant pH, temperature, agitation rate, and dissolved oxygen tension to attain better growth of microbes.
In this work, a small scale bioreactor widely analysed by the researchers [28–30] is chosen for the study. Figure 12 shows the schematic diagram of the reactor. The dynamic behaviour of the reactor is complex, and a number of vital manufacturing processes belong to this group.
where “” is the reactant, “” is reaction rate constant, and “” is the product.
The stoichiometry for biomass activity is very complex since it varies with environmental conditions microorganism and nutrient in the system. Due to these reasons, unstructured models are mainly considered for analysis purpose. The following mathematical equations can describe a variety of industrial bioreactors. Equations (21) and (22) describe the balancing conditions and (23) depict the Monod model for the specific growth rate where is biomass (cell) concentration, is substrate concentration, is the dilution rate, and is substrate feed concentration.
The steady state solutions and the mathematical model of the system are depicted in Tables 4 and 5, respectively. The reactor model has two stable states and an unstable steady state . The transfer function models shown in Table 5 along with a delay time of “1” are utilized in the proposed study.
The unstable bioreactor model is a benchmark problem in the unstable system study.
For substrate inhibition model, the following parameters are considered (Table 6):
hr−1, g/lit, lit/g, . The steady state dilution rate is h−1 (the residence time is 3.33 h) and the feed substrate concentration is g/lit. The nonlinear process has the three steady state operating points for a dilution rate of 0.3 h−1. For the unstable operating region (equilibrium 2, nontrivial) biomass concentration and substrate concentration are considered. The dilution rate is taken as the manipulated variable to control the cell mass concentration at the unstable steady state.
For the unstable operating point, the local linearized model for the unstable bioreactor is where (24) represents a second order model and (25) shows a reduced first order model. The delay time for the model ((24) and (25)) is considered as “1”.
In this work, the PSO-based PID tuning is attempted for second order model (24), and the optimization search is converging at the 74th iteration. The optimised PID controller parameters are , , and .
Figure 13 shows that the response of PSO PID has a lesser overshoot than the MA method, and the settling time is smaller than the VC and VC1 method.
The actual bioreactor model constructed using the nonlinear equation ((21)–(23)) is then tested with the PID controller value obtained by the optimization algorithms. The objective is to maintain the concentration of biomass () based on the setpoint, by adjusting the substrate concentration (). Figures 14 and 15 show the variation of biomass and substrate concentration for the servo and regulatory response. In this figure a setpoint of 0.995103 is considered and a load disturbance of 0.199 (20% of setpoint) is applied at 60 min.
From the result, it is observed that the PSO algorithm based PID controller provides a nonoscillatory response with minimized overshoot and settling for both the setpoint tracking and disturbance rejection applications.
The robustness of the proposed control scheme is then tested by introducing a measurement noise (noise power of 0.001; sampling time of 0.1 sec). The nonlinear model is considered for the simulation study.
Figure 16 shows the variations of biomass concentration and Figure 17 depicts the variation of substrate concentration and dilution rate in the presence and the absence of measurement noise. The reference tracking response of the bioreactor with a PSO-based PID shows that the proposed scheme works well in the noisy environment.
Most of the industrial process loops use conventional or modified structure PID controllers. Tuning the controller parameter for time-delayed unstable system is a challenging work if the system model is other than a first order plus dead time. In this work, design of optimization-based model independent controller tuning for unstable process models has been attempted. In this work, a PSO-based PID controller tuning and retuning is presented in detail for a class of unstable systems. The design of controller is formulated as an optimization problem using ISE as the performance index. This is a model free, online tuning method which can identify the optimal controller parameters effectively. PSO can be practically used as an alternative to obtain the controller parameters with an algorithm-based PID controller. The result obtained from the computer simulation shows that the proposed method improves the performance of the process in terms of time domain specification, setpoint tracking, disturbance rejection, error minimization, and measurement noise attenuation.
|C:||Positive constants (0–2)|
|gbest:||Global best position|
|IAE:||Integrated absolute error|
|ISE:||Integral squared error|
|ITAE:||Integral time absolute error|
|pbest:||Local best position|
|Q:||Inlet flow rate|
|R:||Random number (0-1)|
|S:||Position of particle|
|Ti:||Integral time constant|
|:||Derivative time constant|
|V:||Velocity of particle|
|W:||Inertia weight of particle|
|(s):||Process output + noise.|
|:||Updated iteration number.|
- R. C. Panda, “Synthesis of PID controller for unstable and integrating processes,” Chemical Engineering Science, vol. 64, no. 12, pp. 2807–2816, 2009.
- R. Padma Sree and M. Chidambaram, Control of Unstable Systems, Narosa, 2006.
- C. C. Chen, H. P. Huang, and H. J. Liaw, “Set-point weighted PID controller tuning for time-delayed unstable processes,” Industrial and Engineering Chemistry Research, vol. 47, no. 18, pp. 6983–6990, 2008.
- H. P. Huang and C. C. Chen, “Auto-tuning of PID controllers for second order unstable process having dead time,” Journal of Chemical Engineering of Japan, vol. 32, no. 4, pp. 486–497, 1999.
- G. Prashanti and M. Chidambaram, “Set-point weighted PID controllers for unstable systems,” Journal of the Franklin Institute, vol. 337, no. 2-3, pp. 201–215, 2000.
- H. P. Huang and C.-C. Chen, “Control-system synthesis for open-loop unstable process with time delay,” in Proceedings of IEEE Control Theory and Applications, vol. 144, no. 4, pp. 334–346, 1997.
- M. K. Jhunjhunwala and M. Chidambaram, “PID controller tuning for unstable systems by optimization method,” Chemical Engineering Communications, vol. 185, pp. 91–113, 2001.
- W. Tan, H. J. Marquez, and T. Chen, “IMC design for unstable processes with time delays,” Journal of Process Control, vol. 13, no. 3, pp. 203–213, 2003.
- G. Marchetti, C. Scali, and D. R. Lewin, “Identification and control of open-loop unstable processes by relay methods,” Automatica, vol. 37, no. 12, pp. 2049–2055, 2001.
- Y.-B. Wang, X. Peng, and B.-Z. Wei, “A new particle swarm optimization based auto-tuning of pid controller,” in Proceedings of the 7th International Conference on Machine Learning and Cybernetics (ICMLC '08), vol. 4, pp. 1818–1823, Kunming, Yunnan, 2008.
- J. Tushar and M. J. Nigam, “Optimization of PD-PI controller using swarm intelligence,” International Journal of Computational Cognition, vol. 6, no. 4, pp. 55–59, 2008.
- D. H. Kim and J. H. Cho, “A biologically inspired intelligent PID controller tuning for AVR systems,” International Journal of Control, Automation and Systems, vol. 4, no. 5, pp. 624–636, 2006.
- D. H. Kim, “Hybrid GA-BF based intelligent PID controller tuning for AVR system,” Applied Soft Computing Journal, vol. 11, no. 1, pp. 11–22, 2011.
- A. Ali and S. Majhi, “Design of optimum PID controller by bacterial foraging strategy,” in Proceedings of IEEE International Conference on Industrial Technology (ICIT '06), pp. 601–605, Mumbai, india, December 2006.
- W. M. Korani, H. T. Dorrah, and H. M. Emara, “Bacterial foraging oriented by particle swarm optimization strategy for PID tuning,” in Proceedings of IEEE International Symposium on Computational Intelligence in Robotics and Automation (CIRA '09), pp. 445–450, Daejeon, Republic of Korea, December 2009.
- V. Rajinikanth and K. Latha, “Optimization of PID controller parameters for unstable chemical systems using soft computing technique,” International Review of Chemical Engineering, vol. 3, no. 3, pp. 350–358, 2011.
- V. Rajinikanth and K. Latha, “Bacterial foraging optimization algorithm based PID controller tuning for time delayed unstable system,” The Mediterranean Journal of Measurement and Control, vol. 7, no. 1, pp. 197–203, 2011.
- V. Rajinikanth and K. Latha, “I-PD controller Tuning for unstable system using bacterial foraging algorithm: a study based on various error criterion,” Applied Computational Intelligence and Soft Computing, vol. 2012, Article ID 329389, 10 pages, 2012.
- J. Kennedy and R. C. Eberhart, “Particle swarm optimization,” in Proceedings of IEEE International Conference on Neural Networks, pp. 1942–1948, December 1995.
- W. D. Chang and S. P. Shih, “PID controller design of nonlinear systems using an improved particle swarm optimization approach,” Communications in Nonlinear Science and Numerical Simulation, vol. 15, no. 11, pp. 3632–3639, 2010.
- S. Z. Zhao, P. N. Suganthan, Q. K. Pan, and M. Fatih Tasgetiren, “Dynamic multi-swarm particle swarm optimizer with harmony search,” Expert Systems with Applications, vol. 38, no. 4, pp. 3735–3742, 2011.
- S. C. Chu and J. S. Pan, “Intelligent parallel particle swarm optimization algorithms,” Studies in Computational Intelligence, vol. 22, pp. 159–175, 2006.
- A. Biswas, S. Dasgupta, S. Das, and A. Abraham, “Synergy of PSO and bacterial foraging optimization—a comparative study on numerical benchmarks,” Innovations in Hybrid Intelligent Systems, vol. 44, pp. 255–263, 2007.
- P. Umapathy, C. Venkataseshaiah, and M. S. Arumugam, “Particle swarm optimization with various inertia weight varients for optimal power flow solution,” Discrete Dynamics in Nature and Society, vol. 2010, Article ID 462145, 15 pages, 2010.
- Z.-L. Gaing and C.-H. Lin, “Contingency-constrained optimal power flow using simplex-based chaotic-PSO algorithm,” Applied Computational Intelligence and Soft Computing, vol. 2011, Article ID 942672, 13 pages, 2011.
- M. A. Johnson and M. H. Moradi, “Some PID control fundamentals,” in PID Control: New Identification and Design Methods, chapter 2, pp. 47–107, Springer, London, UK, 2005.
- C. T. Liou and Y.-S. Chien, “The effect of nonideal mixing on input multiplicity in a CSTR,” Chemical Engineering Science, vol. 46, no. 8, pp. 2113–2116, 1991.
- S. Vivek and M. Chidambaram, “An improved relay auto tuning of PID controllers for unstable FOPTD systems,” Computers and Chemical Engineering, vol. 29, no. 10, pp. 2060–2068, 2005.
- S. Pramod and M. Chidambaram, “Closed loop identification of transfer function model for unstable bioreactors for tuning PID controllers,” Bioprocess Engineering, vol. 22, no. 2, pp. 185–188, 2000.
- B. W. Bequette, Process Control—Modelling, Design and Simulation, Prentice Hall, New Delhi, India, 2003.