DESIGN AND IMPLEMENTATION OF PI CONTROLLER USING GENETIC ALGORITHM AND ANT COLONY OPTIMIZATION FOR A SPHERICAL TANK PROCESS Mr. G. SAKTHIVEL Lecturer (selection grade) Department of Instrumentation Engg Annamalai university chidambaram. By A. KRISHNAMOORTHY M.E. (Process Control & Instrumentation Engg.) (2009-2011)
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
DESIGN AND IMPLEMENTATION OF PI CONTROLLER USING GENETIC ALGORITHM AND ANT COLONY
OPTIMIZATION FOR A SPHERICAL TANK PROCESS
Mr. G. SAKTHIVELLecturer (selection grade)
Department of Instrumentation EnggAnnamalai university
chidambaram.
By
A. KRISHNAMOORTHYM.E. (Process Control & Instrumentation Engg.)
(2009-2011)
OBJECTIVES OF THE PROJECT WORK
• To identify the model of the spherical tank process by black box modeling for
various operating region.
a) Low Level
b) Middle Level
c) High Level
• To tune the PI controller by Ziegler- Nichols method.
• To optimize the designed PI controller using ACO (Ant Colony Optimization)
Technique for various cost function like IAE, ITAE, ISE.
• To tune the PI controller by Genetic algorithm.
• To compare the results of ACO tuned PI controller with Z-N tuned PI
and GA tuned PI controller in terms of time domain specification and
performance indices like ISE, MSE, ITAE, IAE.
• To obtain the results form both simulation and real time process for
the corresponding models.
• To check to robustness of the above designed controller and test the
ACO under white noise.
PI CONTROLLER
• It consist of proportional and integral action
• PID can be implemented as a stand alone controller (or) part of the controller
e.g. DDC (or) DCS
• Various actions
P-ACTION P = Kp* e
I-ACTION I = ki ∫e dt
D-ACTION D = Kd d(e)/ dt
where
Kp = proportional gain
KI = Integral gain
Closed loop Z-N tuned PI Controller
The transfer function of PI controller looks like following:
U= Kp* e (t)+ki∫e(t)
Block diagram of PI controller
TYPE OF
CONTROLLERKp Ti Td
P 0.5 Ku ∞ 0
PI 0.45 Ku Pu/1.2 0
PID 0.6 Ku Pu/2 Pu/8
Recommended PID Value Setting
OBJECTIVE FUNCTIONS
The following objective function we are using for both GA and ACO optimization.
1. Integral Absolute error
2. Integral square error
3. Integral time Multiplied by Absolute error
It is a type of machine learning technique
Mimics the biological process of evolution Genetic algorithms
Software programs that learn in an evolutionary manner, similar to the way biological systems evolve
An efficient, domain-independent search heuristic for a broad spectrum of problem domains
Main theme: Survival of the fittes. Moving towards better and better solutions by letting only
the fittest parents to create the future generations
Reproduction
• Multiple copies of the same string may be selected for
reproduction and the fittest string should begin to dominate
e.g. roulette wheel selection
Depiction of roulette wheel selection
CROSSOVER
•Once the selection process is completed, the crossover algorithm is initiated.
•The crossover operations swaps certain port of the two selected strings in a bid to capture the good parts of old chromosomes and create better new ones.
Singe point
Multi point
Uniform
Single point crossover
Multi point crossover
Uniform crossover
MUTATION
•Mutation is the occasional random alternation of a value of a string position.
Eg.
Ant Colony Optimization (ACO) is a paradigm for designing meta heuristic algo-rithms for combinatorial optimization problems.
Ants travel from node to node until end decision based on transition probability (called state transition)
Once all ants travel finished Solutions compared
Pheromone evaporation applied to all edges Pheromone increased along each edge of best/each ant’s path
Original ant system: at each iteration, the pheromone values are updated by all the ants that have build a solution in the iteration itself.
Daemon activities can be run (like local search)
Redo until termination criteria met
They have an advantage over simulated annealing and genetic algorithm approaches when the graph may change dynamically. The ant colony algorithm can be run continuously and can adapt to changes in real time.
•Ants choose paths depending on pheromone
•After collecting food, paths are marked
•After some time, the shortest path has the highest probability
When ants travel they mark their path with substance called pheromone Attracts other ants
When an ant reaches a fork in its path the direction it follows is based on amount of pheromone it detects Decision probabilistically made
This causes positive feedback situation (i.e. Choosing a path increases the probability it will be chosen)
• While ( termination not satisfied )– create ants– Find solutions
• Transition probability:
– Pheromone update– Daemon activities {optional}
∑∈
=
nodes allowed
1)(
1)(
)(
j ijij
ijij
i
dt
dt
tP j βα
βα
τ
τ
Quantity of pheromone
Heuristic distance
α,β constants
∑∈
+−=+),(
)()1()1(
jiedgeusedthatColonyk k
ijij L
Qtt τρτ
• While ( termination not satisfied )– create ants– Find solutions– Pheromone update
– Daemon activities {optional}
Evaporation rate
Pheromone laid by each ant that uses
edge (i,j)
RESULTS AND DISCUSION
• In this section the result of the implemented ACO (ant colony optimization) tuned PI Controller was obtained.
• The ACO designed PI controller is initialized with 10 Ants and 100 iterations then response is analyzed.
• From the ACO-PI controller Reponses it is compared with GA designed PI and ZN – tuned PI controller. The various cost functions are plotted belowin the given figure with different tabulations.
ses
120
1440
5.4G(s) 1 Model −
+=
Initialization of Parameters
To start up with GA, certain parameters need to be defined. Initializing value
of the parameters for this project for is as follows:
Step response for the closed loop system for the PI controller tuned with different methods
500 1000 1500 2000 2500 3000 3500 4000 4500 50000
0.2
0.4
0.6
0.8
1
1.2
1.4
Step Response
Time (sec)
Am
plitu
de
ACO-itae
ACO-iae
ACO-ise
Step response for the closed loop system for the ACO -PI controller tuned with different cost function
500 1000 1500 2000 2500 3000 3500 4000 4500 50000
0.5
1
1.5
Step Response
Time (sec)
Am
plitude
GA-itae
GA-iae
GA-ise
Step response for the closed loop system for the GA- PI controller tuned with different cost function
0 10 20 30 40 50 60 70 80 90 1001
2
3
4Kp,Ki distributions
Ki dis
trib
ution
0 10 20 30 40 50 60 70 80 90 1000
0.005
0.01
0.015
number of generation
Kp d
istrib
ution
Initial distribution of Kp, Ki for AC
0 20 40 60 80 100 120
1.4
1.6
1.8
2Kp setteled
0 20 40 60 80 100 1202
2.5
3x 10
-3 Ki settelled
number of iterations
gain
Kp, Ki settled for ACO
0 10 20 30 40 50 60 70 80 90 1000
2
4
6
8Kp Value
Gain
0 10 20 30 40 50 60 70 80 90 1000
0.2
0.4
0.6
0.8Ki Value
Generations
Gain
Kp, Ki settled for GA
0 20 40 60 80 100 1202200
2400
2600
2800
3000
3200
3400
3600
3800ACO-ITAE setteled
number of iteration
ITA
E
ACO – ITAE settled
obustness of the controller is defined as its ability to tolerate a certain amount of change in the process parameters without causing the feedback system to go unstable
n order to investigate the robustness of the proposed method in the model parameters were altered.
hence
ain constant K,
ime const T,
elay time Td
re deviated by ±15% of its nominal values. Therefore
k is incremented by 15%
T is incremented by 15%
Td is reduced by 15% of
ses
120
1440
5.4G(s) 1 Model −
+=
ses
150
11050
7.2G(s) Model3 −
+=
ses
130
11200
6G(s) Model2 −
+=
ACTUAL MODELS
ses
102
1506
7.5G(s) 1 Model −
+=
ses
110
11380
9.6G(s) Model2 −
+=
ses
127
11207
15.3G(s) Model3 −
+=
ALTERED MODELS
ALTERED MODELS
Case (i)
Gain, K value is incremented by 15%.
The value of is incremented by 15%.
The value of td is decremented by 15%.
Case (ii)
Gain, K value is incremented by 10%.
The value of is incremented by 10%.
The value of td is decremented by 10%.
Case (iii)
Gain, K value is incremented by 25%.and , td values no changes.
Case (iv)
Time constant is incremented by 25%.
and k, td values no changes.
Case (v)
Time delay td is incremented by 25%.
and k, values no changes.
CASE 1
Model 1 Model 2 Model 3
Kp Ki %Mp tp Ts tr Kp Ki %Mp tp Ts tr Kp Ki %Mp tp Ts tr
In phase 2 of this project work, the conventional PI controller was tuned by Z-N tuning method and compared with proposed GA and ACO methods.
Then it is implemented to the first order with dead time process. Then simulation studies are carried out to analyze the performance of the spherical tank process and Robustness of above mentioned controller for the different set points.
It is also implemented in real time for the real time results of GA, ACO, ZN same set points. The result of both simulation and real time process were compared.
From the output response obtained using ACO tuned PI controller gives less over shoot, fastest settling time, fastest rise time then the other techniques.
Time domain specification and performance indices were tabulated for the above said models.
Ying- Tung Haiao, (2004) Ant colony optimization for Designing of PID controller, IEEE, internation symposium on computer Aided control system aided control systems design Taipei, Taiwan, September 2-4, 2004.
s S. Nithya, Abhay Singh Gour, N. Sivakumaran, T.K. Radhakrishnan and N. Anantharaman, Model Based controller Design for shell and Tube heat exchanger, sensors and Transducers Journal, Vol.84, Issue 10, October 2007, pp.1677-1686.
, Sigurd Skogestasd, Simple analytic rules for model reduction ad PID controller tuning, Journal of process control, 13,2003, pp.291-309.
g P. Wang and D.P Kwok, “Optimal design of PID process controllers based on genetic algorithms” control Engineer practices Vol.2,no.4, pp.641-648, 1994.