|
Algorithm 5 Parallel Compact Food Digestion Algorithm |
|
Output: Population size ; Dimension D; Maximum number of iterations ; Lower boundary ; Upper boundary ; |
|
Input: Global optimal position , Global optimal fitness value ; |
-
1:
Initialize the parameters and the number of groups as well as the mean and standard deviation and for each group;
-
2:
while
do
-
3:
for do
-
4:
Sampling generates particles and calculates their fitness values;
-
5:
Calculate the values of and S;
-
6:
Calculate the values of and V;
-
7:
Update the particle to get and calculate its fitness value;
-
8:
Calculate the values of and V;
-
9:
Update the particle to get and calculate its fitness value;
-
10:
Calculate the values of and V;
-
11:
Update the particle to get and calculate its fitness value;
-
12:
Find the particle with the best and worst fitness value among the four particles, denoted as and ;
-
13:
Use and to update ;
-
14:
end for
-
15:
Intergroup communication using parallel strategies;
-
16:
Find the global optimal solution and its fitness value ;
-
17:
;
-
18:
end while
|