|
Algorithm 4 Get the next cell to visit according to pheromone matrix |
Input:, Output:
-
1:
Create collection that contains all elements of
-
2:
Create collection that contains all elements of
-
3:
Create empty collection C
-
4:
for in
do
-
5:
if
then
-
6:
put into C
-
7:
end if
-
8:
end for
-
9:
ifthen
-
10:
-
11:
end if
-
12:
ifthen
-
13:
for
in
do
-
14:
if
then
-
15:
put into C
-
16:
end if
-
17:
end for
-
18:
-
19:
end if
|