What is Simulated Annealing? (original) (raw)

Last Updated : 23 Jan, 2026

In the world of optimization, finding the best solution to complex problems can be challenging, especially when the solution space is vast and filled with local optima. One powerful method for overcoming this challenge is **Simulated Annealing (SA). Inspired by the physical process of annealing in metallurgy,

How Simulated Annealing Works

The algorithm starts with an initial solution and a high "temperature," which gradually decreases over time. Here’s a step-by-step breakdown of how the algorithm works:

P(\text{accept}) = e^{-\frac{\Delta E}{T}}

Cooling Schedule and Its Importance

The cooling schedule plays a crucial role in the performance of Simulated Annealing. If the temperature decreases too quickly, the algorithm might converge prematurely to a suboptimal solution (local optimum). On the other hand, if the cooling is too slow, the algorithm may take an excessively long time to find the optimal solution. Hence, finding the right balance between exploration (high temperature) and exploitation (low temperature) is essential.

Advantages of Simulated Annealing

Limitations of Simulated Annealing

Applications of Simulated Annealing

Comparison to Other Optimization Techniques

Simulated Annealing is often compared to other global optimization techniques like Genetic Algorithms (GA) and Particle Swarm Optimization (PSO).