|
Algorithm 3 Pseudocode of the DLO algorithm |
-
1:
Initialize DLO parameters and initialize the population.
-
2:
Calculate the fitness value of the agents
-
3:
Update global optimal fitness value and the optimal individual position
-
4:
while do
-
5:
for to N do
-
Exploration phase
-
6:
if then
-
7:
-
8:
initialize the direction vector
-
9:
for to D do
-
10:
update
-
11:
end for
-
12:
if then
-
13:
-
14:
else
-
15:
-
16:
end if
-
Exploitation phase
-
17:
else
-
18:
update Lévy flight search strategy
-
19:
if then
-
20:
-
21:
else
-
22:
-
23:
end if
-
24:
end if
-
25:
update using greedy selection strategy
-
26:
update using greedy selection strategy
-
27:
end for
-
28:
-
29:
end while
-
30:
Output: the global optimal fitness value and the global optimal position
|