Demonstration 1 of 1
Simulated annealing under a fixed budget: starting temperature and starting tour
With a fixed number of evaluated moves, does a hotter starting temperature or a better starting tour give the shorter final tour?
Annealing accepts a worsening move with probability exp(-delta/T). From a nearest-neighbour tour, which is already decent, a hot start throws away that quality and the fixed budget is too short to rebuild it, so colder is better. From a random tour the search must build structure itself: the two low settings (0.01 and 0.1) end within noise of each other, and every hotter start wastes more of the budget. Setting T from the mean worsening delta, rather than solving for the acceptance, misses the target, most of all at cold settings.
Scroll sideways for the whole equation
delta is the increase in tour length of a worsening move, T the temperature and a the mean acceptance probability of sampled worsening moves. The score divides the final length by the nearest-neighbour tour length, so values below 1 mean the search improved on the constructive tour.
Predict first. Starting simulated annealing from the nearest-neighbour tour, which target acceptance gives the shortest final tour under 60,000 moves?
Choose an example
Scroll sideways for the whole figure
Constructed example: eight seeded random 150-city instances, annealed with 2-opt moves under a fixed budget, measured by the chapter activity.
Calculated values
- Random start, final / NN length
- 0.904
- Nearest-neighbour start, final / NN length
- 0.925
- Saving of the better start
- 0.096
- Naive-T acceptance
- 0.536
- Solved T0, random start
- 4.21 edges
With a target acceptance of 0.50 and 60,000 moves, annealing from a random tour ends at 0.904 of the nearest-neighbour length and from the nearest-neighbour tour at 0.925, so the random start is shorter and 1 - 0.904 = 0.096 is the saving over no search. The temperature solved for this acceptance is 4.21 mean edge lengths for the random tour and 14.80 for the nearest-neighbour tour. Setting T from the mean worsening delta gives an acceptance of 0.536 instead of 0.50.
Worked steps
- Random start against nearest-neighbour start: 0.904 - 0.925 = -0.021 (negative means random is shorter).
- Saving of the better start over no search: 1 - 0.904 = 0.096.
- Naive temperature: acceptance 0.536 - target 0.50 = +0.036.
- Solved temperature for the random and the nearest-neighbour start: 4.21 and 14.80 mean edges.
Use the idea
Sample worsening moves from the starting tour, solve the temperature for a chosen acceptance, then compare a few acceptances and both starts under the same evaluation budget before spending more compute on one.
Where the conclusion applies
Constructed random Euclidean instances of 150 cities, 2-opt moves only and one cooling shape (geometric to a fixed final temperature); a longer budget, Or-opt moves or a different final temperature would move every number. Lengths are relative to the nearest-neighbour tour, a named reproducible baseline, since no proved optimum is computed here. Only the coldest start is close to plain greedy 2-opt descent. The nearest-neighbour construction itself (about 11,000 distance lookups, roughly the cost of 2,800 move evaluations) is not charged to the budget.
Check your understanding: What does solving the temperature for a target acceptance buy, and why does the nearest-neighbour start still need a lower target?
Chapter 54 source: section "Simulated Annealing: The Most Robust Starting Point".