|
Algorithm 1 Global Foraging Strategy of the API Algorithm |
-
1:
Initialize the nest position
-
2:
▹ Iteration counter
-
3:
while stopping condition not met do
-
4:
for each ant do
-
5:
Perform local exploration: API ← Foraging()
-
6:
end for
-
7:
if nest relocation condition is satisfied then
-
8:
▹ Move the nest to the best site
-
9:
Reset ant memories
-
10:
end if
-
11:
-
12:
end while
-
13:
return best solution and its evaluation
|