|
Algorithm 2 Reptile Search Algorithm (RSA) |
-
1:
Initialize RSA parameters and initialize the population.
-
2:
while do
-
3:
Calculate the fitness of individuals and the global best individual.
-
4:
Update the
-
The beginning of the RSA
-
5:
for to N do
-
6:
for to D do
-
7:
Update the , , .
-
Exploration phase
-
8:
if then
-
9:
High walking
-
10:
else if and then
-
11:
Belly walking
-
Exploitation phase
-
12:
else if and then
-
13:
Hunting Coordination
-
14:
else
-
15:
Hunting cooperation
-
16:
end if
-
17:
end for
-
18:
end for
-
19:
-
20:
end while
-
21:
return the global best.
|