Simulated Annealing (SA) is a metaheuristic optimization algorithm that finds an approximate global optimum in a large, complex search space. It is a probabilistic technique inspired by the physical process of annealing in metallurgy, where a material is heated and slowly cooled to reduce defects and minimize its internal energy. The algorithm's core mechanism is its ability to accept moves to worse states with a probability that decreases over time, controlled by a temperature parameter and a defined cooling schedule. This allows it to escape local optima that trap simpler algorithms like Hill Climbing.
