Simulated Annealing — Probabilistic Optimization
Simulated Annealing · Also known as: Benzetimli Tavlama (Simulated Annealing), SA, probabilistic local search
Simulated annealing is a probabilistic local-search metaheuristic introduced by Kirkpatrick, Gelatt, and Vecchi in 1983. It models the physical annealing process in metallurgy — where a material is heated and then slowly cooled to reach a low-energy crystalline state — and uses this analogy to escape local optima in combinatorial and continuous optimization problems.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
+9 more
When to use it
Simulated annealing is applicable to any problem where a neighbourhood structure can be defined over the solution space, regardless of whether the objective function is differentiable, convex, or even analytically expressible. It is particularly well-suited to combinatorial problems (scheduling, routing, graph problems) and continuous black-box optimisation. No training data or normality assumption is required. The cooling schedule and neighbourhood structure must be tuned to the problem; running fewer than roughly 1 000 iterations risks premature convergence to a local optimum, in which case a simpler deterministic local search should be preferred instead.
Strengths & limitations
- Can escape local optima through probabilistic acceptance of worse solutions, unlike pure hill-climbing.
- Applies to virtually any problem type — combinatorial, continuous, mixed — as long as a neighbourhood structure is defined.
- Requires no gradient information and is indifferent to the mathematical structure of the objective function.
- Has a theoretical guarantee of convergence to the global optimum under sufficiently slow cooling (Hajek 1988).
- Few hyperparameters: initial temperature, cooling rate, and neighbourhood structure.
- Solution quality is sensitive to the cooling schedule; a poor schedule can yield results no better than random search.
- The neighbourhood structure must be designed for each problem class, which requires domain expertise.
- Convergence to the global optimum requires extremely slow cooling in practice, making runtime long for high-quality guarantees.
- Does not leverage gradient or structural information, so gradient-based methods outperform it on smooth, differentiable problems.
Frequently asked
How do I choose the cooling schedule?
The geometric schedule T ← α·T with α between 0.90 and 0.99 is the most common starting point. A practical approach is to set the initial temperature high enough that roughly 80% of moves are accepted at the start, then reduce it until fewer than 1% of uphill moves are accepted. If the final solution quality is poor, slow the cooling rate (increase α); if runtime is too long, speed it up. Always run the algorithm several times from different starting solutions to assess robustness.
How does simulated annealing differ from genetic algorithms or particle swarm optimisation?
Simulated annealing maintains a single solution and explores the neighbourhood through random perturbations, accepting worse solutions probabilistically. Genetic algorithms and particle swarm optimisation maintain a population of solutions and use crossover, mutation, or swarm movement to evolve the population. Simulated annealing is generally simpler to implement for problems with a natural neighbourhood structure, while population-based methods can be more effective for high-dimensional continuous problems.
Is the global optimum guaranteed?
Theoretically yes, under the condition that the temperature decreases sufficiently slowly (logarithmic cooling). In practice, such cooling is computationally infeasible, so the algorithm finds a near-optimal solution. The quality of the result improves with slower cooling and more iterations, but there is no finite-time guarantee. Running multiple restarts and keeping the best solution found is a practical way to increase confidence.
When should I prefer tabu search or a genetic algorithm instead?
Choose tabu search when you need a deterministic, memory-guided search that avoids revisiting recent solutions and can exploit problem structure efficiently in a shorter run. Choose a genetic algorithm or particle swarm optimisation when the problem is high-dimensional and continuous, or when a population of diverse solutions is needed to map the optimum landscape. Simulated annealing is a strong default for combinatorial problems with a clear neighbourhood structure and when implementation simplicity matters.
Sources
- Kirkpatrick, S., Gelatt, C.D. & Vecchi, M.P. (1983). Optimization by Simulated Annealing. Science, 220(4598), 671-680. DOI: 10.1126/science.220.4598.671 ↗
- van Laarhoven, P.J.M. & Aarts, E.H.L. (1987). Simulated Annealing: Theory and Applications. Springer. ISBN: 9789027725431
How to cite this page
ScholarGate. (2026, June 1). Simulated Annealing. ScholarGate. https://scholargate.app/en/optimization/simulated-annealing
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Ant Colony OptimizationOptimization↔ compare
- Differential EvolutionOptimization↔ compare
- Genetic AlgorithmOptimization↔ compare
- Particle Swarm OptimizationOptimization↔ compare
- Tabu SearchOptimization↔ compare