Labs · Evolutionary Computing

Simulated Annealing

Simulated Annealing simulation

A different way to search a huge space, borrowed from metallurgy. Keep one route and repeatedly try a small change (reverse a section). Always accept improvements. Accept a change that makes things worse with probability e^(−Δ/T), where the temperature T slowly cools.

When hot, the search jumps around freely and escapes local optima. As it cools it becomes greedy and settles into a very good route, just as slowly cooled metal forms an orderly crystal. Compare with the population-based GA in the previous demo.

Cool very fast (0.99) and watch it get stuck in a worse route. Press "Reheat" to try again.

Controls

Evolved from Traveling Salesperson (GA).