|
Algorithm 1 Solve TSP by using simulated annealing algorithm |
-
Input:
The coordinates of CH nodes
-
Output:
The sequence of CH nodes
-
1:
Initialize maximum iteration temperature , the sequence of CH nodes , and annealing coefficient .
-
2:
.
-
3:
while do
-
4:
Swap the order of any two nodes to generate a new visiting sequence .
-
5:
Calculating , denoted as .
-
6:
if then
-
7:
if then
-
8:
-
9:
end if
-
10:
else
-
11:
-
12:
end if
-
13:
end while
|