Simulated Annealing (SA) : Metaheuristics
Simulated Annealing (SA) : Metaheuristics
(SA)
METAHEURISTICS
Achmad P. Rifai
Evolutionary algorithms Physics-based Swarm Based Other algorithms
algorithms algorithms
Genetic Algorithms (GA) Simulated Annealing Particle Swarm Variable Neighborhood
(Holland 1992) (SA) (Kirkpatrick et al. Optimization (PSO) Search (VNS)
1983; Cerný 1985) (Kennedy and Eberhart (Mladenovic and Hansen,
1995) 1997)
Evolution Strategy (ES) Gravitational Search Ant Colony Optimization Large Neighborhood
(Rechenberg, 1978) Algorithm (GSA) (ACO) (Dorigo and Search (LNS) (Pisinger
(Rashedi et al. 2009) Stützle, 2004) and Ropke, 2010)
Genetic Programming Charged System Search Grey Wolf Optimizer Stochastic Fractal Search
(GP) (Koza 1992) (CSS) (Kaveh and (GWO) (Mirjalili et al. (SFS) (Salimi 2015)
Talatahari 2010) 2014)
Trajectory Population
Type of metaheuristics
Simulated Annealing (SA)
• Simulated annealing is named because of its analogy to the process of
physical annealing with solids, in which a crystalline solid is heated and
then allowed to cool very slowly until it achieves its most regular possible
crystal lattice configuration (i.e., its minimum lattice energy state), and
thus is free of crystal defects.
• Mainly used to solve discrete problem.
Pseudocode of LNS
1 Input: =initial
2 Generate an initial solution temperature
3 Calculate the fitness values of the solution = final
4 Initialize current temperature temperature
5 While = cooling rate
6 Perform solution modification
7 Calculate the fitness
8 Compute
9 Metropolis criterion for acceptance
10 Adjust current temperature
11 End while
12 Output: and
4 1
5
depot
6
2
8 3
Example 3
1. Set the parameters
= 10 4 1
= 0.1 5
depot
= 0.99 6
2
7 4 5 1 6 3 2 8
Example 3
The total time needed by the vehicle to visit all nodes, counted
from the depot until returning to the depot again
4. Initialize current temperature
5. Set iteration procedure
6. Perform solution modification using local searches
Example 3
6. Perform solution modification using local searches
8. Calculate
9. Perform metropolis criterion for solution acceptance
If
Else
If
Else
Example 3