Input: Distance matrix D, Initial temperature , Cooling rate , Maximum iteration Maxit Output: Best Solution 1: Assign the value of Maxit and the initial value of and 2: For each city , generate a set of n sub-routes consist of one city 3: Add a closest city in the right end of each sub-route that is not yet in the route 4: Repeat the process of step 3 until all the cities are added in each sub-route 5: Add starting city in the right side of the last position of each sub-route to generate n feasible routes, 6: Compute the Euclidean distance/fitness value of each route, 7: For each iteration, it = 1 to maximum iteration 8: For each route , to n 9: Generate a new route by adopting neighborhood structure (described in Section 3.2.1) 10: Compute Euclidean distance/fitness value of the new route 11: Calculate on the basis of Equation (11) 12: If , then update the current route by assigning 13: If , then compute the acceptance probability p by using Equation (10). If , then update the current route by assigning , where u is the random number between 0 and 1 14: End for 15: Decrease the temperature based on Equation (12) 16: Update the best solution ever found 17: End for |