Informed (Heuristic) Search

Simulated Annealing Search (process visualization)

Simulated Annealing (SA) is an optimization algorithm inspired by the annealing process in metallurgy, where materials are heated and slowly cooled to reach a stable state with minimal energy. It is used to find approximate solutions to optimization problems by iteratively exploring potential solutions and occasionally accepting worse solutions to escape local optima.
The goal in this example here is to find the minimum point of a complex function with several local minima. It animates the optimization process step-by-step, showing accepted/rejected solutions, energy and temperature changes, and tracks the best-found solution. The goal is to illustrate how simulated annealing works through interactive visuals and graphs.

Energy Landscape

Step: 0 / 500
Current Solution
Best Solution
Local Minima
Global Minimum

Energy & Temperature Over Time

Algorithm Settings

Algorithm Status

Temperature:

1000.00

Current Energy:

0.00

Best Energy:

0.00

Acceptance Probability:

P = e-ΔE/T = e-(Enew-Ecurrent)/T

Click "Start" to begin the simulation

Speed:

Iteration Log