Simulated Annealing
Simulated Annealing
a metaheuristic approach
Presented by;
Nitesh Bansal (2k15/the/09)
Nirmal Pratap Singh
(2k15/the/08)
1
Outline
Introduction
Basic
philosophy
Procedure : Simulated Annealing
Example : Travelling Salesman Problem
Hill Climbing
Stimulated Annealing vs. Hill Climbing
Features
Drawback
Applications
References
Introduction
Basic Philosophy
Annealing
Process
Metal Problem
Energy State Cost Function
Temperature Control Parameter
A completely ordered crystalline structure
the optimal solution for the problem
System state feasible solution
Global optimal solution can be achieved as long
as the cooling process is slow enough
6
Carlo Annealing
Statistical Cooling
Probabilistic Hill Climbing
Stochastic Relaxation
Probabilistic Exchange Algorithm
Iterative Improvement in SA
Procedure
Step1. Start with initial configuration
Step2. Repeatedly search neighborhood and select a
neighbor as candidate (by Sub-Tour Reversal)
Step3. Evaluate some cost function (or fitness function)
and accept candidate if "better"; if not, select
another neighbor (by Move Selection Rule)
Step4. Stop if quality is sufficiently high, if no improvement
can be found or after some fixed time.
8
Sub-Tour Reversal
Adjusts
Temperature Schedule
Suppose five iterations are performed at
each of five values of T {T1,T2,T3,T4,T5}
Where,
T1=0.2ZC T2=0.5T1 T3=0.5T2
T4=0.5T3 T5=0.5T4
This
10
12
Step 2.
Selecting
15
Objective is Minimization
ZN = obj. function value for the current trial solution
ZC = obj. function value for the current candidate to be
16
To Accept
The new candidate for feasible solution is
1-2-4-3-5-6-7-1 and ZN = 65
Since ZN = 65 < ZC
This candidate is better than the current trial solution, so
the candidate is automatically accepted to be the next trial
solution.
17
Not to Accept
19
Iterations
20
Example:
Hill climbing :
A local improvement procedure
22
Unconditional Acceptance
COST FUNCTION, C
HILL CLIMBING
HILL CLIMBING
AT FINAL_TEMP
NUMBER OF ITERATIONS
23
Simulated Annealing
(Minimization)
Flow Chart
25
Simulated Annealing
Random
function
value
Starting Point
T = Very
High
Simulated Annealing
Random
function
value
Step
T = Very
High
Simulated Annealing
Even
function
value
T = Very
High
Simulated Annealing
Next
function
value
T = Very
High
Simulated Annealing
Next
function
value
T = Very
High
Simulated Annealing
Next
T = High
function
value
Simulated Annealing
Next
T = High
function
value
Simulated Annealing
Next
function
value
T = Medium
Simulated Annealing
Next
T = Medium
function
value
Simulated Annealing
Next
T = Medium
function
value
Simulated Annealing
Next
T = Low
function
value
Simulated Annealing
Next
function
value
T = Low
Simulated Annealing
Next
T = Low
function
value
Simulated Annealing
Eventually
function
value
T = Low
converge to Maximum
Applications
Travelling
salesman problem
Locomotive scheduling
Optimal placement of > 106 transistors on a
chip
DNA Mapping
Financial Analysis
Banking Industry
40
Features
Ability
Deals
41
Drawback
No
Another
42
References
43
Thank You!
44