Lectures 1_3 Advanced Optimization Techniques
Lectures 1_3 Advanced Optimization Techniques
(Control Engineering)
Course Title: Advanced Optimization Techniques (Course Code
EPCE6302) Credits 3; Contact Hours/week Lecture 2, Tutorial
Practice/Laboratory 3
solutions.
30/03/2024 Dr Endalew Ayenew 22
Selection (roulette wheel principle)
i
qi p j
j 1
Mechanism for
covering large
area of search
space.
Mechanism to improve
local search space.
became new
30/03/2024 Dr Endalew Ayenew 39
Example 2 cont.:
Flock of birds
30/03/2024 Dr Endalew Ayenew 56
1.2 PARTICLE SWARM OPTIMIZATION
is employed to control the impact of the previous history of velocities on the current velocity.
Thus, the parameter w regulates the trade off between the global (wide—ranging) and the local
(nearby) exploration abilities of the swarm. A large w facilitates exploration (searching new
areas), while a small one tends to facilitate exploitation, i.e. fine tuning the current search area.
A proper value for the inertia weight w provides balance between the global and local
exploration ability of the swarm, and, thus results in better solutions. Experimental results imply
that it is preferable to initially set the inertia to a large value, to promote global exploration of the
search space, and gradually decrease it to obtain refined solutions. Particularly, 0.9 ≧ w ≧ 0.1
PARTICLES
Maxt=50;
for i =1:n
for j =1:m
Xo(I,j) = round(LB(j)+rand(0,1)*(UB(j)-LB(j)))
end
end
30/03/2024 Dr Endalew Ayenew 72
30/03/2024 Dr Endalew Ayenew 73
+1
, for t= 1
V1 V2 V3
Initial Velocity
30*(1.1-3)^2 = 1.3226
+1
UPDATE
Initial Velocity
30/03/2024 Dr Endalew Ayenew 77
V1 for X1 V1 for X2 V1 for X3
+1
Updated velocity
Note: One of its drawbacks is that PSO does not have memory. It does not store the historical trajectories of
each particle in each iteration. This makes it hard for the algorithm to avoid local optima
30/03/2024 Dr Endalew Ayenew 88
Problem 1
Problem 2
Design PSO Optimized PID Controller for a continuous stirred tank reactor (CSTR) System. Use
minimum integral of time multiplied by absolute error (ITAE) as objective function.
Figure: a colony of ants is confronted with the choice of reaching their food via two different routes
30/03/2024 Dr Endalew Ayenew 96
Cont. ACO
Problem 2 (ACO)
Note: consider pheromone decay factor equal to 0.6 and global updating parameter is 2.
DC motor
PID (Parameters Kp, Ki, Kd) and LQR (Parameters Q and R, and then K ) are to be optimally tuned by ACO.
30/03/2024 Dr Endalew Ayenew 119