Professional Documents
Culture Documents
Daa Flip
Daa Flip
Annealing
Presented by:
322058 - Harshvardhan Sasane
322067 - Priyanshu Lapkale
322069 - Pritam Dahiphale
322073 - Kausal Khachane
322076 - Sufiyaan Rahi
02/12
Introduction
SA is a metaheuristic optimization technique introduced by Kirkpatrick et al. in 1983 to solve the
Travelling Salesman Problem (TSP).
The SA algorithm is based on the annealing process used in metallurgy, where a metal is heated to a high
temperature quickly and then gradually cooled. At high temperatures, the atoms move fast, and when
the temperature is reduced, their kinetic energy decreases as well. At the end of the annealing process,
the atoms fall into a more ordered state, and the material is more ductile and easier to work with.
Similarly, in SA, a search process starts with a high-energy state (an initial solution) and gradually lowers
the temperature (a control parameter) until it reaches a state of minimum energy (the optimal solution).
Algorithm
1. Set the initial temperature T and the cooling rate α, and initialize the current solution s as a random solution.
2. Repeat until a stopping criterion is met, such as a maximum number of iterations or a desired fitness level:
a. Generate a new solution s' by perturbing the current solution s. The perturbation can be done randomly,
or it can be guided by a search heuristic.
b. Evaluate the fitness of the new solution f(s').
c. Calculate the change in fitness Δf = f(s') - f(s).
d. If Δf < 0, accept the new solution as the current solution s.
e. If Δf > 0, accept the new solution with a probability p = exp(-Δf / T).
Generate a random number r between 0 and 1, and if r < p, accept the new solution as the current solution s.
f. Decrease the temperature T according to the cooling schedule. A common cooling schedule is the
geometric cooling, where T = αT at each iteration.