|
Algorithm 2 Parallel strategy for star topology |
-
1:
Calculate the average position of the first three groups of optimal particles and their fitness values;
-
2:
if The fitness value of the average position < The fitness value of the optimal particle in the central group then
-
3:
Replace the position of the central group of optimal particles and its fitness value with the average position and its fitness value;
-
4:
end if
-
5:
Perturbing the central group of optimal particles and calculating its fitness value;
-
6:
if Particle fitness values after perturbation < The fitness value of the first group of optimal particles then
-
7:
Replace the position of the first group of optimal particles and its fitness value with the position of the perturbed particle and its fitness value
-
8:
end if
-
9:
if Particle fitness values after perturbation < The fitness value of the second group of optimal particles then
-
10:
Replace the position of the second group of optimal particles and its fitness value with the position of the perturbed particle and its fitness value
-
11:
end if
-
12:
if Particle fitness values after perturbation < The fitness value of the third group of optimal particles then
-
13:
Replace the position of the third group of optimal particles and its fitness value with the position of the perturbed particle and its fitness value
-
14:
end if
|