Simulated annealing is a general optimization technique inspired by the annealing process in metallurgy. It aims to avoid getting stuck in local minimum by allowing probabilistic moves to worse solutions based on temperature. The method was first proposed by Metropolis in 1953 for optimization problems. It works by initializing a solution and temperature, exploring new solutions probabilistically based on the Metropolis criterion, and slowly lowering the temperature until equilibrium is reached.