optional · interactive figures

26

Explore: local search and annealing

2-opt moves replayed from the reference solution, and an annealing run you can scrub through with its temperature.

optional: nothing in the lab depends on itback to the slides

26 · explore

2-opt, one move at a time

Try: step through the six cities, then the twelve from a random tour and from nearest neighbour; compare how many moves each needs. Static version: 2-opt on six cities.

26 · explore

An annealing run, and its temperature

Try: drag the iteration slider through the hot run, then the cold one; set Δ to the mean edge (46) and watch its acceptance fall as T cools. Static version: one worsening move.