You are on page 1of 7

2016 1st International Conference on Innovation and Challenges in Cyber Security (ICICCS 2016)

Design an Intelligent Controller for a Process Control


System
1
Meenakshi Sharma, 2Pallavi Verma, and 3Lini Mathew
1,2
ME Students (Electrical Engineering), NITTTR Chandigarh, India
1
meenakshibhardwaj90@gmail.com, 2pverma@gn.amity.edu)
3
HOD of Electrical Engineering Department, NITTTR, Chandigarh, India,
lenimathew@yahoo.com

ABSTRACT I. INTRODUCTION

Process control is one of the important Industrial application of process variables


problems in today industries. Precise control abound, such as in food processing,
control of level, temperature, pressure and nuclear power, generation plant, industrial
flow is important in many process chemical processing and pharmaceutical
applications. Now a days PID controllers industries. In industries process variables
have found wide acceptance and such as level, flow, pressure, temperature
applications in the industries. The main are controlled by PID controller, such
objective of this work is to improve the advances have been made in control
performance of PID controller of water tank techniques; this is due to its simplicity and
system consists of various sensors ability to apply a wide range of situations
/transducers used for measurement of [1]. PID controller is the most commonly
process variables such as level, flow, used controller strategy in feedback control
pressure and temperature. These systems loop in the process control industry. It can
normally found in food and drink be used in different forms such as stand
manufacturing, petrochemical production, alone, or in combination with logic control
water purification, sewage processing and system, to make complicated automation
many other area of industry. systems used for energy and power
The Performance of the PID controller can production, manufacturing, and latter used
be improved using various soft computing for oil refining plants [2]. Its widespread use
techniques such as Genetic Algorithm (GA), is attributed to its simple structure and
Artificial Neural Network (ANN), Particle robust performance over a wide range of
Swarm optimizations (PSO), Fuzzy logic operating conditions [3]. On the other hand
controller (FLC), In this paper GA and PSO tuning of a PID controller is rather difficult
used to improve the performance of the and is a time consuming process. There are
water tank system using gain optimization. several optimization algorithms which can
be used for searching optimal gain
KEYWORDS - PID Controller, Water tank parameters a very basic one is random
system, GA, PSO search [4].

In this study GA and PSO used to


optimization of parameters of PID
controller. Therefore, an extensive study on
the optimization of the controller parameters
is necessary PID controller algorithm is
described by Eq. 1

978-1-5090-2084-3/16/$/31.002016 IEEE
217
2016 1st International Conference on Innovation and Challenges in Cyber Security (ICICCS 2016)

( )= ( )+ ( ) + ( ) The concept of developing gain optimization


using GA/PSO that would be used to
improve the water tank system to facilitate
the knowledge of process variables such as
level, flow, temperature, pressure. The main
goal of this system is to improve the
performance of PID controller for a water
tank system of process rig PCT-100.

Obtaining equations pertaining both


situations are formulated and then used to
find transfer function which have input
variable as input flow rate of entry of water
Figure 1 Block Diagram of PID tank system and controlled variable as
Controller height in the exit tank. To obtain accurate
liquid level control, feedback the controlled
Where u (t) is the control signal and e (t) is liquid level and compared with the reference
error of the control system. The PID control input. Then an actuating signal which is
parameters consist of the proportional gain proportional to the difference of the input
(KP), integral time (KI), and derivative time and the output is sent to PID controllers,
(KD). Figure 1 shows the conventional PID which wills then take a corrective action
controller. The effect of KP is to decrease such as increasing/decreasing of inflow rate
the steady state error by increasing the value to tank or changing the valve to maintain the
of gain but it never eliminates the error. KP liquid level tank at desired level to decrease
can also reduce the rise time of the system. the error.
The action of the integral gain is to eliminate
steady state error but the tendency for
oscillation also increase by this action. The GA & PSO tuned
derivatives gain the effect of increasing the Gain Parameters
system stability and reducing the overshoot
of the system as well as improving its
Controlled
settling time [5]. To obtain this control PID Controller Process
mechanism a PID controller is used which
can be tuned by intelligent algorithms such
as GA, PSO. PID controller has been put use
for many engineering application since the Desired Comparators Controlled
last two decades any many methods have Input Output
been developed to tune the PID controller
like Ziegler- Nichols rule, symmetric Figure 2 Block Diagram to Tune the
optimum rule, internal model control and Control Process Variable Using PSO/GA
PSO. These tuning rules provide method for Algorithms
calculation of the parameters for the tuning
of PID controller. GA and PSO are used for III. MATHEMATICAL MODELING
optimization of the parameters of PID
controller [6]. Consider an open water tank with cross-
sectional area A, as shown in Figure 2,
II WORKING PRINCIPLE Water is pumped into the tank at the top at

218
2016 1st International Conference on Innovation and Challenges in Cyber Security (ICICCS 2016)

rate of flow of qin cubic meters per second. controls. These basic process controls are
Water is flowing out of the tank via a hole in developed and built with the process itself,
the bottom of the tank of area a. The rate of to facilitate basic operation, control and
flow of water through the hole is following automation requirements [8].
the Bernoulli equation given by:
qout = a2gh (2) a) Genetic Algorithm
Genetic Algorithm (GA) is a global
optimization algorithm which is derived
from evolution and natural selection.
Genetic algorithm cannot always provide
optimal solution; it has its own advantages
and it is a powerful tool for solving complex
problems. The basic thought of genetic
algorithm shown in flow graph

Population members
Figure 3 Simple Water Tank
where h is level of tank and g is gravity.
Conservation of mass yields the equation Generation = 0
A = qin - qout = qin a2gh (3)
Evaluate fitness value of
Parameters in equations 3.2 are h = 25cm, r
population members
= 9.5cm, a = 0.07cm and surface area of
tank is A=2057.5cm 2058cm
Integrating the equation (3), and taking Selection
laplace transform of the above equation
H(s) = (qin a2gh) Crossover
The simulink model shown in Figure 4
Gen = Gen+1 Mutation

No
Is it the last
generation
Figure 4 Simulink Model for Water Level
Yes
III. TECHNIQUES OF INTELLIGENT
CONTROLLERS Stop
Advanced Process Control (APC) refers to Figure 5 Flow graph for GA algorithm
an advance range of techniques and 1) Randomly producing an original
technologies implemented within industrial population whose number of individuals
process control systems and advanced is a constant N.
process controls are usually deployed
optionally and in addition to basic process

219
2016 1st International Conference on Innovation and Challenges in Cyber Security (ICICCS 2016)

2) Second step is producing next The simulink model of water level shown in
generation by crossing over and Figure 4 has been incorporated with PID
mutation among individuals. controller and PSO/GA and is shown in Fig.
3) Forming the new population of these 5. The set point is defined by unit step
N individuals from the generation of 2 function which represents the desired set
4) Producing the next generation by point. The output of simulink model which
repeating the step 2 and step 3 until represents the output values of process
obtaining the individual which satisfies variables.
conditions.

b) PSO ALGORITHM
PSO simulates the behaviors of bird
flocking. Suppose the scenario: a group of
birds are randomly searching food in an
area. There is only one piece of food in the
area being searched. PSO is initialized with
a group of random particles (solutions) and
then searches for optima by updating
generations. In each iteration, each particle Figure 6. Block Diagram to Control
is updated by following two best values. The
first one is the best solution (fitness) it has Water Level Using PSO/GA Algorithm
achieved. The fitness value is also store. After using PSO algorithm to tune the
This value is called pbest. Another best parameters of PID controller, the results of
value that is tracked by the PSO is the best process variables (water level, temperature
value, obtained so far by any particle in the and flow rate) which are gotten, after the
population. The best value is a global best execution of PSO algorithm code at setpoint
and called gbest. When a particle takes 8 then we got the values of settling time, rise
part of the population as its topological time, overshoot, steady state error etc.
neighbors, then this best value is a local best
and is called lbest. After finding the two best 10

values, the particle updates its velocity and 8


positions as per equation (3.16) and (3.17). Set Point
vik+1 = wvik +c1 rand1 () x (pbesti-sik) + c2 Measured Value
Water Level

rand2 () x (gbest-sik) .. (4)


where, vik is the velocity of agent i at 4

iteration k, w is the weighting function, cj is 2


the weighting factor. rand is the uniformly
distributed random number between 0 and 0
0 100 200 300 400 500 600
1,sik is the current position of agent i at Time
iteration k,pbesti : pbest of agent i, gbest: Figure 7 Control of Water Level Using
gbest of the group. PSO Algorithm at SP=8
sik+1 = sik+ vik+1 ..
(5)
k+1
si : modified position
The simulation results of water level system
IV. SIMULATION AND RESULTS
using PSO algorithm and PID controller
SIMULINK MODEL FOR WATER
shows that the rise Time is 0.3986s, settling
LEVEL
time is 0.7006s, overshoot is 0 and the

220
2016 1st International Conference on Innovation and Challenges in Cyber Security (ICICCS 2016)

steady state Error is 0. When the setpoint is 25

20 the simulation results of water level


control shown in Figure 8. The rise Time is 20

0.6817s, settling time is 7.0207s, overshoot Set Point

Water Level
15 Measured Value
is 6.111 and the steady state Error is 0.
50 10

40 5
Temperature Control

Set Point
Measured Value
30 0
0 100 200 300 400 500 600
Time

20 Figure 10 Control of Water Level Using


10
GA Algorithm at SP=20

0
0 100 200 300 400 500 600 V. COMPARISON OF RESULTS
Time

Table 1 Water level Control with and


Figure 8 Control of Water Level Using without PSO/GA
PSO Algorithm at SP=20
The simulation results of water level control
Control System Performance Parameters
using genetic algorithm at setpoint 8 shown
in Figure 8. The rise time is 0.2598s, settling method for Settling Rise Steady Overshoot
time is 0.4499, overshoot is 0.2284 and the
PID
steady state Error is 0. Time time State
10 controller error
8
Set Point
Measured Value
Controlling
6
Water Level

4
process
2
variable 90 30 0.2 0
0
0 100 200 300 400 500 600
without
Time

PSO/GA
Figure 9. Control of Water Level Using Controlling
GA Algorithm at SP=8 process 0.7006 0.3986 0 0
At the setpoint 20 the simulation results of variable with
water level control shown in Figure 9. The
rise time is 0.2636s, settling time is 0.4594s, PSO
overshoot is 0.2290 and the steady state Controlling
Error is 0.
process 0.4499 0.2598 0 0.2284
variable with
GA

221
2016 1st International Conference on Innovation and Challenges in Cyber Security (ICICCS 2016)

Now from Table 1. It is found that the REFERENCES


output approaches to the input very rapidly
when we are tuning the PID controller with [1] Z. Ma and A. Jutan, Control of a
PSO/GA algorithm. It shows that rise time is Pressure Tank System using a Decoupling
very small. Also settling rime of the output Control algorithm with a Neural Network
by using PSO/GA is very small which Adaptive Scheme, Proceeding of IEEE on
shows that the output attain the steady state Process Control Theory Applications, Vol.
value very fast. While in case of the results 150, No. 4, pp. 389-400, July 2003.
without PSO/GA algorithm the Rise time
and settling time are very large. Also the [2] M.K.Tan, Y.K.Chin, H.J. Tham,
steady state error reduces in large amount. Genetic Algorithm Based PID
But there are some oscillations when we Optimization in Batch Process Control,
tune PID parameters manually .But by using Proceeding of International Conference on
PSO/GA algorithm there are no oscillations Computer Applications and Industrial
or very small number of oscillations in the Electronics, pp.162-167, Dec 2011.
results also the peak time of the waveform is
very small using PSO/GA algorithm. There [3] Sanju Saini, Sarita Rani, Temperature
is small overshoot in some results using Control Using Intelligent Techniques,
PSO/GA algorithm but overall system Proceedings of the Second International
performance using PSO/GA algorithm is Conference on Advanced Computing &
better than the system without PSO/GA Communication Technologies, pp.138-145,
algorithm. Murthal, Sep 2012.

[4] Wen-wen Cai , Li-xin Jia , Yan-bin


VI. CONCLUSION
Zhang , Nan Ni, Design and simulation of
PID controller parameters by using PSO/GA
intelligent PID controller, Proceeding of
algorithm because manual tuning of the PID
IEEE International Conference on Electrical
controller is a tedious process and it takes
Engineering, pp.1-4, Sep 2010.
very long time because it is based on hit and
trial method. So to make the PID controller [5] Aditya Sarjak Kantha, Ayush Utkarsh
speed faster, PSO/GA algorithm is used. and J.Ravi kumar, Hybrid Genetic
PSO/GA algorithms tune the PID controller Algorithm-Swarm Intelligence Based
parameters by reducing the fitness function Tuning of Continuously Stirred Tank
which is error function. The performance Reactor, Proceedings of IEEE on Process
parameters (Rise time, Settling time, Steady Control Systems and Applications, pp.1-7,
state error and overshoot) are improved by Dec 2010.
using PSO/GA algorithm.
[6] Ravi Kumar Jatoth, Ayush Kumar Jain ,
ACKNOWLEDGMENT T. Phanindra, Liquid Level Control of
I am greatly thankful to honorable Dr. M.P. Three Tank System Using Hybrid GA-PSO
Poonia, DIRECTOR, NITTTR Chandigarh, Algorithm Proceedings of Nirma
Dr. Lini Mathew Associate Professor & University International Conference on
Head, Electrical Engineering Department Engineering (NUiCONE), Warangal, Vol. 4,
and Mrs. Shimi S.L, Assistant Professor, pp.1-7, January 2013
Electrical Engineering Department for their
[7] Chao Guo, Yingwei Zhang ,
worthy guidance and help in writing this
XianqiangYou, Xue Chenand Yang Zhang,
paper.

222
2016 1st International Conference on Innovation and Challenges in Cyber Security (ICICCS 2016)

Optimal Control of Continuous Annealing


Process Using PSO, Proceedings of the
IEEE International Conference on
Automation and Logistics, Shenyang, China,
Vol.2, pp. 602-606, August 2009.

[8] Wen-wen Cai , Li-xinJia , Yan-bin


Zhang , Nan Ni, Design and simulation of
intelligent PID controller, Proceedings of
IEEE International Conference on Electrical
Engineering, China, Vol. 48, pp.1-4,
September 2010.

[9] Chengli Su, Yun Wu, Adaptive Neural


Network Predictive Control Based on PSO
Algorithm, Proceedings of IEEE
International Conference on Control System
Engineering, China, pp.5829-5832,
November 2009.

[10] S. J. Bassi , M. K. Mishra and E. E.


Omizegba, Automatic Tuning Of
ProportionalIntegralDerivative (PID)
Controller Using Particle Swarm
Optimization (PSO) Algorithm
Proceedings of International Journal of
Artificial Intelligence & Applications
(IJAIA), Vol.2, No.4, October 2011.

223

You might also like