Escaping local minima costs something.
At high temperature, uphill moves can survive. As the temperature falls, the algorithm becomes increasingly conservative. The randomness is not noise added after the fact; it is part of the search strategy.
Optimization · CMNA Laboratory
Define a two-dimensional objective in R, then watch simulated annealing accept, reject, wander, cool, and remember the best point it has seen.
At high temperature, uphill moves can survive. As the temperature falls, the algorithm becomes increasingly conservative. The randomness is not noise added after the fact; it is part of the search strategy.
Bring your own landscape
Write f(x) and x0 in R, choose temperature, cooling rate, and seed, then play the accepted and rejected moves.
Preparing R…f and two-dimensional x0| n | temperature | proposal f | accepted? | best f |
|---|