IJETR031972
IJETR031972
IJETR031972
274 www.erpublication.org
Design and Simulation of PSO Based PI Controller for a Non-Linear Two-Tank Interacting Level Process
MOTORISED Flow rate 50LPH tank2 (cm), respectively Both tanks have the same cross
CONTROL Characteristics Equal% sectional area A1(cm2) and A2(cm2), qL1 is the inflow of tank1
VALVE Valve action motorized as load disturbance (cm3/min) and qL2 is the inflow of tank2
control as load disturbance (cm3/min) [1and 2].
ROTAMETER Type variable area
qin(mv) qL1 (Load) qL2 (Load)
Range (0-100)LPH
float material i.e (0-1666
3
/min)
SS 316
PUMP RPM 4500
Discharge 1000(LPH)
Voltage 220/230 volts R1 R2
AC&DC h1
h2
PROCESS TANK Capacity 3 litres
Height 300 mm
Diameter 120 mm q1
A1 A2
LEVEL Input 24V DC
TRANSMITTER Height 0-400 mm WC
tank1 tank2
Type F capacitance
Parameter Dimension c a
q1 d 1 2 g (h h )
Area(A1,A2) 113.0973 cm2 A 1 2 (2)
1
Height(max) 25 cm Mass balance equation for tank 2
Diameter 12 cm
dh
0-1666 cm3/min A2 2 q q (3)
Inflow rate(MV),qin 1 o
dt
Process Variable (PV),h2 0-25 cm Assuming non-linear resistance to flow:
0-500 cm3/min
c a
q d 2
Flow rate (LV),qL1,qL2
2 gh
G Gravity (9.81N/m2) o A 2
2
a1 and a2 Area of the pipe outlet
(a1=3.5735cm2 , dh c a c a
d 1 (4)
a2=3.9012cm2) A 2
2 dt 2 g (h h ) d 2 2 gh
cd Discharge co-efficient A 1 2 A 2
1 2
( cd=0.08)
275 www.erpublication.org
International Journal of Engineering and Technical Research (IJETR)
ISSN: 2321-0869, Volume-3, Issue-4, April 2015
simulated process reaction curve(PRC) of h2 for step change INTERACTING PROCESS USING Z-N METHOD.
in qin for 499.8cm3/min is shown in Fig.4.
Mode
2 h1
PI 7.9351 56.61
h2
2
Level (cm)
1
C. Particle swarm optimization (pso) algorithm
Particle swarm optimization (PSO) algorithm, which is
1 used for optimizing the PSO difficult numerical functions and
based on metaphor of human social interaction, is capable of
5 mimicking the ability of human societies to process
knowledge [4]. It has roots in two main component
0 methodologies: artificial life (such as bird flocking, fish
0 50 100 1500
Time(sec) schooling and swarming) and evolutionary computation.
Although the PSO algorithm is initially developed as a tool
Fig.3. Simulated open loop response of h1 and h2 of for modelling social behaviour, it has been applied in
interacting Process. different areas.
R(s) E(s) U(s)
10
8
h2(cm)
6
Fig.5 . PSO based PI controller to control the level of
Positive Step
Input
Negative Step
Input
Fig 6.Flow chart PSO-PI
A. Z-N tuning technique The equation for position and velocity
Based on the average transfer functionthe value of kc and
ti are calculated using Z-Ntechniques.The values of kc and ti Vn+1 = vn+c1rand1( )*(pbest,n-current position)+ c2rand1(
are tabulated in Table IV. )*(gbest,n-current position) (5)
TABLE IV
x (t +1) = xid (t) + vid(t +1) (6)
PI CONTROLLER SETTINGS FOR TWO-TANK
276 www.erpublication.org
Design and Simulation of PSO Based PI Controller for a Non-Linear Two-Tank Interacting Level Process
h2(cm)
population.
PSO-PI
Step3 Calculate each individuals fitness value, and 4
PI
then compare each individuals evaluation value
with best global particle value gbest the personal
best value pbest . Finally select the new best
2
value (gbest and pbest)
0
Step4 For every particle, update its own velocity and 0 2000 4000 6000 8000
position value. Time(sec)
Step5 If iteration=n, then go to exit, otherwise go to Fig.7. Servo response of h2 with PI and PSO-PI
step 3. controllers.
Step6 The best particles value will be selected as the
finial parameter set to form desired PI
controller.
25
20
During simulation the values for PSO algorithm
considered are tabulated in Table V.
15
h1(cm)
TABLE V
PARAMETER OF PSO ALGORITHM
Parameter Values 10 PSO-PI
Number of Iteration 20
Dimension 3 PI
Swarm Size 90 5
Correction Factor C1 1.2
C2 1.4
0
0 2000 4000 6000 8000
The optimized PSO-PI parameter using equation 5 and 6 Time(sec)
are tabulated
TABLE VI Fig.8.Servo response of h1 with PI and PSO-PI controllers.
PARAMETERS OF PI AND PSO-PI CONTROLLERS 600
Mode
PI 7.9351 56.61
qin(cm /min)
PI
V. SIMULATION RESULTS
200
A. Servo responses of level h2 with PI and PSO-PI
controllers.
277 www.erpublication.org
International Journal of Engineering and Technical Research (IJETR)
ISSN: 2321-0869, Volume-3, Issue-4, April 2015
qin(cm /min)
400
RESPONSE (6-8) CM
3
380
Servo response for h2 (6-8)cm
ts(sec) %overshoot ISE
360
PI 1988 12.825 353.4
PSO-PI 978 33.66 254.2 340
4000 4500 5000 5500
B. Regulatory response for Positive step change load time(sec)
variable qL1(+) Fig 12. Response of PI and PSO output(qin) for load
variation in +10% from qL1
A sudden load disturbance of +10% is given in inlet
flow rate of tank1 at 4000 sample from q L1(+) . Due to this C. Regulatory response for negative step change load
level in h1 increases for PI from 13.3 to 14.5 cm and PSO it variable qL1(-)
increases from 13.3 to 15.4 as shown in fig.11. The level h 2
also increases for PI from 6 to 6.5 cm and PSO it increases
from 6 to 6.9cm as shown in fig 10. The PI and PSO-PI A sudden load disturbance of -10% is given in inlet flow
Controller takes necessary action to reduce the flowrate q in rate of tank1 at 4000 sample from qL1(-) . Due to this level in
from 420 to 350 (ref fig12) In order bring back the level h 2 h1 decreases for PI from 13.3 to 12.1 cm and PSO it
back to 6cm as shown in fig 10. decreases from 13.3 to 11.1 as shown in fig 14. The level h 2
also decrease for PI from 6 to 5.5 cm and PSO it decreases
from 6 to 5.1 cm as shown in fig 13. The PI and PSO-PI
7 Controller takes necessary action to increase the flowrate q in
PSO-PI from 425 to 500 (ref fig 15) in order bring back the level h 2
PI back to 6cm as shown in fig 13.
6.5
h2(cm)
6.2
6
h2(cm)
6 5.8 PSO-PI
5.6 PI
5.4
4000 4500 5000 5500
time(sec) 5.2
Fig 10. Regulatory response of h2 with PI and PSO due
to load variation in +10% from qL1.
4000 4500 5000 5500
time(sec)
Fig 13. Regulatory response of h2 with PI and PSO-PI due to
load variation in -10% from qL1
PSO-PI
15 PI
14 PSO-PI
h1(cm)
14 13.5 PI
13
h1(cm)
13 12.5
12
12 11.5
4000 4500 5000 5500
time(sec) 4000 4500 5000 5500
Fig 11. Regulatory response of h1 with PI and PSO-PI due to time(sec)
Load variation in +10% from qL1.
Fig 14. Regulatory response of h1 with PI and PSO-PI due
to load variation in -10% from qL1.
278 www.erpublication.org
Design and Simulation of PSO Based PI Controller for a Non-Linear Two-Tank Interacting Level Process
13.5 PSO-PI
500 PSO-PI
PI 13 PI
qin(cm min)
480 12.5
h1(cm)
12
3
460
11.5
440
11
420 4000 4500 5000
time(sec)
4000 4500 5000 5500 . Fig 17. Regulatory response of h1 with PI and PSO-PI
time(sec) due to load variation in +10% from q L2 .
Fig 15. Response of PI and PSO-PI output (qin) for load
variation in -10% from qL1.
500
TABLE VIII
PSO-PI
COMPARISON OF PERFORMANCE MEASURE OF PI
qin(cm /min)
LEVEL WITH PI AND PSO FOR REGULATORY 400
RESPONSE. 3
Regulatory Response h2 (6-8)cm 300
Controller +10% from qL1 -10% from qL1
ts(sec) ISE ts(sec) ISE 200
PSO-PI 1032 2822 1046 2821 4000 4200 4400 4600 4800 5000
PI 1460 9316 1275 9316 time(sec)
Fig 18. Regulatory response of h1 with PI and PSO-PI
due to load variation in +10% from q L2 .
D. Regulatory response for positive step change load
variable qL2(+) E. Regulatory response for Negative step change
load variable qL2(-)
A sudden load disturbance of +10% is given in inlet flow
rate of tank1 at 4000 sample from qL2(+) . Due to this level in A sudden load disturbance of -10% is given in inlet flow
h1 increases for PI from 13.3 to 13.5 cm and PSO it increases rate of tank1 at 4000 sample from qL2(-) . Due to this level in
from 13.3 to 13.6cm as shown in fig 17. The level h 2 also h1 increases for PI from 13.3 to 15.6 cm and PSO it increases
increases for PI from 6 to 7 cm and PSO it increases from 6 to from 13.3 to 15 as shown in fig 20. The level h2 also decreases
6.9cm as shown in fig 16. The PI and PSO-PI Controller for PI from 6 to 5.6 cm and PSO it decreases from 6 to 5.8cm
takes necessary action to reduce the flowrate qin from 420 to as shown in fig 19. The PI and PSO-PI Controller takes
200 (ref fig18) in order bring back the level h2 back to 6cm as necessary action to increase the flowrate qin from 420 to 750
shown in fig 16. (ref fig21) in order bring back the level h2 back to 6cm as
shown in fig 19.
7 PSO-PI
PI
6.5
h2(cm)
6
h2(cm)
PSO-PI
6 PI
5.5
5.5
4000 4500 5000 5
time(sec) 4000 4500 5000 5500
Fig 16. Regulatory response of h2 with PI and PSO-PI time(sec)
due to load variation in +10% from Fig 19. Regulatory response of h2 with PI and PSO-PI due
qL2 to load variation in -10% from qL2.
279 www.erpublication.org
International Journal of Engineering and Technical Research (IJETR)
ISSN: 2321-0869, Volume-3, Issue-4, April 2015
16 REFERENCES
PSO-PI
PI [1] V. Rajinikanth and K. Latha, Setpoint weight PID controller
15 tuning for unstable system using heuristic algorithm, Archives of
h1(cm)
Fig 20. Regulatory response of h1 with PI and PSO-PI due [4] Kennedy J, Eberhart R. Particle swarm optimization. In: Proc IEEE
to load variation in -10% from qL2. int conf neural networks, vol. IV, Perth, Australia; 1995. p.
194248.
600
qin(cm /min)
TABLE IX
COMPARISON OF PERFORMANCE MEASURE OF
WITH PI AND PSO-PI FOR REGULATORY
VI. CONCLUSION
The non-linear mathematical model of a two-tank
interacting process was derived. To improve the performance
of closed loop control a PSO-PI was designed and
implemented for a two-tank interacting process. The servo
and regulatory responses were obtained with PSO-PI. The
performances of PSO-PI were compared with that of
conventional PI controller in simulation. The performance
measures were tabulated. It is observed that the PSO-PI gives
is better performance on terms of less integral square error,
faster settling time and without oscillation.
280 www.erpublication.org