|
Algorithm 3 Parallel strategy for unidirectional ring topology |
-
1:
for
do
-
2:
Use to find the remainder of 4 and record the remainder as
-
3:
if then
-
4:
-
5:
end if
-
6:
if The fitness value of the optimal particle in group g > The fitness value of the optimal particle in group then
-
7:
Replace the optimal particle position and its fitness value of group g with the optimal particle position and its fitness value of group
-
8:
else
-
9:
Disturb the optimal particle of group g and calculate its fitness value
-
10:
end if
-
11:
if Particle fitness value after perturbed < The optimal particle fitness value of group g then
-
12:
Use the perturbed particle position and its fitness value to replace the optimal particle position and its fitness value of group g
-
13:
end if
-
14:
end for
|