SlideShare a Scribd company logo
8
Most read
13
Most read
14
Most read
Simulated Annealing
●Presented By:
Ranak Ghosh
Septembar,2010
For more contact-
08013835148
CONTENT
●Motivation
●The algorithm
●Its applications
●Examples
●Conclusion
Introduction
●Various algorithms proposed for
placement in circuits.
●Constructive placement vs Iterative
improvement.
●Simulated Annealing – an iterative
improvement algorithm.
Motivation
●Annealing in metals
●Heat the solid state metal to a high
temperature
●Cool it down very slowly according to a
specific schedule.
●If the heating temperature is sufficiently high
to ensure random state and the cooling
process is slow enough to ensure thermal
equilibrium, then the atoms will place
themselves in a pattern that corresponds to
Motivation
●The connection between this algorithm and
mathematical minimization was first noted by
Pincus.
●He proposed that it forms the basis of an
optimization technique for combinatorial (and other)
problems.
●SA's major advantage over other methods is an
ability to avoid becoming trapped at local minima.
●The algorithm employs a random search which not
only accepts changes that decrease objective
function f, but also some changes that increase it.
●The latter is accepted with a probability P=exp(-
df/T), where df is the increase in f and T is a
Simulated Annealing-The
Algorithm
●Analogy
Cntnd
.
Analogy
●Slowly cool down a heated solid, so that all particles
arrange in the ground energy state
●At each temperature wait until the solid reaches its
thermal equilibrium
●Probability of being in a state with energy E :
Pr { E = E } = 1/Z(T) . exp (-E / kB.T)
E Energy
T Temperature
kB Boltzmann constant
Z(T) Normalization factor (temperature dependant)
PROCEDURE OF
SIMULATED ANNEALING
Cooling schedule
Convergence of simulated
annealing
Ball on terrain example – Simulated Annealing
vs Greedy Algorithms
●The ball is initially placed at a random position on the
terrain. From the current position, the ball should be
fired such that it can only move one step left or
right.What algorithm should we follow for the ball to
finally settle at the lowest point on the terrain?
Ball on terrain example – SA vs Greedy
Algorithms
Example: Travel Salesperson Problem (TSP)
How to transverse n cities once and only
once with a minimal total distance?
Traveling Salesperson Problem (TSP)
●TSP is famous discrete optimization problem
●Many successful uses of SAN with TSP
●Basic problem is to find best way for salesperson to hit
every city in territory once and only once
oSetting arises in many problems of optimization on
networks (communications, transportation, etc.)
●If tour involves n cities, there are (n–1) ! /2 possible
solutions
oExtremely rapid growth in solution space as n
increases
oProblem is “NP hard”
●Perturbations in SAN steps based on three operations on
network: inversion, translation, and switching
9/8/2010
TSP
●Move sets for TSP
1-2-3-4-5-6-7-8-9-10-11-12
1
2
3
4 5
6
7
8 9
10
11
12
1
2
3
4 5
6
7
8 9
10
11
12
1-2-3-4-5-9-8-7-6-10-11-12
1
2
3
4 5
6
7
8
9
10
11
12
1-2-3-4-8-7-5-9-6-10-11-12
1
2
3
4 5
6
7
8
9
10
11
12
1-2-11-4-8-7-5-9-6-10-3-12
Inversio
n
Switching
Translatio
n
Inversion reverses order 6-7-8-9; translation removes section 6-7-8-9 and
places 8-7 in place of 5-9; switching interchanges order of 3 and 11.
Small-Scale TSP
●10-city tour (very small by industrial standards)
oKnow by enumeration that minimum cost of tour =
440
●Randomly chose inversion, translation, or switching
at each iteration
oTuning required to choose “good” probabilities of
selecting these operators
●8 of 10 SA runs find minimum cost tour
oSample mean cost of initial tour is 700; sample
mean of final tour is 444
●Essential to success is adequate use of inversion
operator; 0 of 10 SA runs find optimal tour if
probability of inversion is 0.50
●SA successfully used in much larger TSPs
Simulated Annealing for TSP-
ANALOGY
●Initial configuration: permutation =>1, 2, 3, 4, …, N
temperature T = 2
cooling rate α = 0.99
energy = d(1,2)+d(2,3)+…+d(N,1)
●Generate a new configuration from the current one
at random
●Evaluate ΔE = current energy – previous energy
●If ΔE < 0 accept the current configuration (downhill)
Else accept configuration with probability :
P=exp (-∆E / kB.T)
●T= αT
●Stopping criteria if energy < threshold or number of
Case Study: 20-city problem
Applications
●Circuit partitioning and placement.
●Strategy scheduling for capital
products with complex product
structure.
●Umpire scheduling in US Open Tennis
tournament!
●Event-based learning situations.
Jigsaw puzzles – Intuitive usage of Simulated
Annealing
●Given a jigsaw puzzle
such that one has to
obtain the final shape
using all pieces together.
●Starting with a random
configuration, the human
brain unconditionally
chooses certain moves
that tend to the solution.
●However, certain moves
that may or may not lead
to the solution are
accepted or rejected with
a certain small probability.
●The final shape is
obtained as a result of a
Performance
●SA is a general solution method that is easily
applicable to a large number of problems
●"Tuning" of the parameters (initial T, decrement of T,
stop criterion) is relatively easy
●Generally the quality of the results of SA is good,
although it can take a lot of time
●Results are generally not reproducible: another run
can give a different result
●SA can leave an optimal solution and not find it again
(so try to remember the best solution found so far)
●Proven to find the optimum under certain conditions;
Thank You!

More Related Content

PPT
Simulated Annealing
PDF
Simulated annealing.ppt
PPTX
Simulated Annealing - A Optimisation Technique
PPTX
Optimization Simulated Annealing
PPT
Simulated annealing
PPTX
Simulated annealing
PPTX
Simulated Annealing
PDF
Simulated Annealing
Simulated Annealing
Simulated annealing.ppt
Simulated Annealing - A Optimisation Technique
Optimization Simulated Annealing
Simulated annealing
Simulated annealing
Simulated Annealing
Simulated Annealing

What's hot (20)

PDF
Simulated Annealing
PPTX
Lecture 25 hill climbing
PDF
LSTM Basics
PPTX
Particle swarm optimization
PDF
Thompson Sampling for Machine Learning - Ruben Mak
PPTX
Simulated annealing-global optimization algorithm
PDF
RM 701 Genetic Algorithm and Fuzzy Logic lecture
PPTX
Heuristic or informed search
PDF
Reinforcement Learning 5. Monte Carlo Methods
PPTX
AI_Session 26 Algorithm for state space.pptx
PPTX
Inference in First-Order Logic
PPT
Particle Swarm Optimization - PSO
PPT
Genetic algorithm
PPT
Introduction to Genetic Algorithms
PPTX
Introduction on Prolog - Programming in Logic
PDF
Sharpness-aware minimization (SAM)
PPTX
Practical Swarm Optimization (PSO)
PDF
Genetic Algorithms
PPTX
Minmax Algorithm In Artificial Intelligence slides
PDF
Introduction to soft computing
Simulated Annealing
Lecture 25 hill climbing
LSTM Basics
Particle swarm optimization
Thompson Sampling for Machine Learning - Ruben Mak
Simulated annealing-global optimization algorithm
RM 701 Genetic Algorithm and Fuzzy Logic lecture
Heuristic or informed search
Reinforcement Learning 5. Monte Carlo Methods
AI_Session 26 Algorithm for state space.pptx
Inference in First-Order Logic
Particle Swarm Optimization - PSO
Genetic algorithm
Introduction to Genetic Algorithms
Introduction on Prolog - Programming in Logic
Sharpness-aware minimization (SAM)
Practical Swarm Optimization (PSO)
Genetic Algorithms
Minmax Algorithm In Artificial Intelligence slides
Introduction to soft computing
Ad

Similar to Simulated annealing -a informative approach (20)

PDF
Presentation_Parallel GRASP algorithm for job shop scheduling
PPT
CS8451 - Design and Analysis of Algorithms
PDF
Advances in the Solution of NS Eqs. in GPGPU Hardware. Second order scheme an...
PDF
Advances in the Solution of Navier-Stokes Eqs. in GPGPU Hardware. Modelling F...
PDF
Ece4510 notes09
PPTX
Asymptotics 140510003721-phpapp02
PDF
Framework for Inter-Model Analysis of Cyber-Physical Systems
PDF
Firefly exact MCMC for Big Data
PPTX
Data Structure Algorithm -Algorithm Complexity
PPT
Complexity Analysis
PPT
CS8451 - Design and Analysis of Algorithms
PPTX
NS-CUK Seminar: S.T.Nguyen, Review on "Hierarchical Graph Transformer with Ad...
PDF
Poster: Contract-Based Integration of Cyber-Physical Analyses
PPTX
designs and analysis of algorithmss.pptx
PDF
Chap 8. Optimization for training deep models
PDF
Design Analysis and Algorithm Module1.pdf
PPT
Basics of data structure types of data structures
PDF
Otras.pdf
ODP
Power systemsilablri
PDF
lecture2-180129175419 (1).pdfhhhhhhhhhhh
Presentation_Parallel GRASP algorithm for job shop scheduling
CS8451 - Design and Analysis of Algorithms
Advances in the Solution of NS Eqs. in GPGPU Hardware. Second order scheme an...
Advances in the Solution of Navier-Stokes Eqs. in GPGPU Hardware. Modelling F...
Ece4510 notes09
Asymptotics 140510003721-phpapp02
Framework for Inter-Model Analysis of Cyber-Physical Systems
Firefly exact MCMC for Big Data
Data Structure Algorithm -Algorithm Complexity
Complexity Analysis
CS8451 - Design and Analysis of Algorithms
NS-CUK Seminar: S.T.Nguyen, Review on "Hierarchical Graph Transformer with Ad...
Poster: Contract-Based Integration of Cyber-Physical Analyses
designs and analysis of algorithmss.pptx
Chap 8. Optimization for training deep models
Design Analysis and Algorithm Module1.pdf
Basics of data structure types of data structures
Otras.pdf
Power systemsilablri
lecture2-180129175419 (1).pdfhhhhhhhhhhh
Ad

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Getting Started with Data Integration: FME Form 101
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
August Patch Tuesday
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Web App vs Mobile App What Should You Build First.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
A Presentation on Artificial Intelligence
SOPHOS-XG Firewall Administrator PPT.pptx
Programs and apps: productivity, graphics, security and other tools
Building Integrated photovoltaic BIPV_UPV.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
1 - Historical Antecedents, Social Consideration.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Chapter 5: Probability Theory and Statistics
Getting Started with Data Integration: FME Form 101
Assigned Numbers - 2025 - Bluetooth® Document
Hindi spoken digit analysis for native and non-native speakers
August Patch Tuesday
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
DP Operators-handbook-extract for the Mautical Institute
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Enhancing emotion recognition model for a student engagement use case through...
NewMind AI Weekly Chronicles - August'25-Week II
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Web App vs Mobile App What Should You Build First.pdf
Group 1 Presentation -Planning and Decision Making .pptx

Simulated annealing -a informative approach

  • 1. Simulated Annealing ●Presented By: Ranak Ghosh Septembar,2010 For more contact- 08013835148
  • 3. Introduction ●Various algorithms proposed for placement in circuits. ●Constructive placement vs Iterative improvement. ●Simulated Annealing – an iterative improvement algorithm.
  • 4. Motivation ●Annealing in metals ●Heat the solid state metal to a high temperature ●Cool it down very slowly according to a specific schedule. ●If the heating temperature is sufficiently high to ensure random state and the cooling process is slow enough to ensure thermal equilibrium, then the atoms will place themselves in a pattern that corresponds to
  • 5. Motivation ●The connection between this algorithm and mathematical minimization was first noted by Pincus. ●He proposed that it forms the basis of an optimization technique for combinatorial (and other) problems. ●SA's major advantage over other methods is an ability to avoid becoming trapped at local minima. ●The algorithm employs a random search which not only accepts changes that decrease objective function f, but also some changes that increase it. ●The latter is accepted with a probability P=exp(- df/T), where df is the increase in f and T is a
  • 7. Analogy ●Slowly cool down a heated solid, so that all particles arrange in the ground energy state ●At each temperature wait until the solid reaches its thermal equilibrium ●Probability of being in a state with energy E : Pr { E = E } = 1/Z(T) . exp (-E / kB.T) E Energy T Temperature kB Boltzmann constant Z(T) Normalization factor (temperature dependant)
  • 11. Ball on terrain example – Simulated Annealing vs Greedy Algorithms ●The ball is initially placed at a random position on the terrain. From the current position, the ball should be fired such that it can only move one step left or right.What algorithm should we follow for the ball to finally settle at the lowest point on the terrain?
  • 12. Ball on terrain example – SA vs Greedy Algorithms
  • 13. Example: Travel Salesperson Problem (TSP) How to transverse n cities once and only once with a minimal total distance?
  • 14. Traveling Salesperson Problem (TSP) ●TSP is famous discrete optimization problem ●Many successful uses of SAN with TSP ●Basic problem is to find best way for salesperson to hit every city in territory once and only once oSetting arises in many problems of optimization on networks (communications, transportation, etc.) ●If tour involves n cities, there are (n–1) ! /2 possible solutions oExtremely rapid growth in solution space as n increases oProblem is “NP hard” ●Perturbations in SAN steps based on three operations on network: inversion, translation, and switching
  • 15. 9/8/2010 TSP ●Move sets for TSP 1-2-3-4-5-6-7-8-9-10-11-12 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12 1-2-3-4-5-9-8-7-6-10-11-12 1 2 3 4 5 6 7 8 9 10 11 12 1-2-3-4-8-7-5-9-6-10-11-12 1 2 3 4 5 6 7 8 9 10 11 12 1-2-11-4-8-7-5-9-6-10-3-12 Inversio n Switching Translatio n Inversion reverses order 6-7-8-9; translation removes section 6-7-8-9 and places 8-7 in place of 5-9; switching interchanges order of 3 and 11.
  • 16. Small-Scale TSP ●10-city tour (very small by industrial standards) oKnow by enumeration that minimum cost of tour = 440 ●Randomly chose inversion, translation, or switching at each iteration oTuning required to choose “good” probabilities of selecting these operators ●8 of 10 SA runs find minimum cost tour oSample mean cost of initial tour is 700; sample mean of final tour is 444 ●Essential to success is adequate use of inversion operator; 0 of 10 SA runs find optimal tour if probability of inversion is 0.50 ●SA successfully used in much larger TSPs
  • 17. Simulated Annealing for TSP- ANALOGY ●Initial configuration: permutation =>1, 2, 3, 4, …, N temperature T = 2 cooling rate α = 0.99 energy = d(1,2)+d(2,3)+…+d(N,1) ●Generate a new configuration from the current one at random ●Evaluate ΔE = current energy – previous energy ●If ΔE < 0 accept the current configuration (downhill) Else accept configuration with probability : P=exp (-∆E / kB.T) ●T= αT ●Stopping criteria if energy < threshold or number of
  • 19. Applications ●Circuit partitioning and placement. ●Strategy scheduling for capital products with complex product structure. ●Umpire scheduling in US Open Tennis tournament! ●Event-based learning situations.
  • 20. Jigsaw puzzles – Intuitive usage of Simulated Annealing ●Given a jigsaw puzzle such that one has to obtain the final shape using all pieces together. ●Starting with a random configuration, the human brain unconditionally chooses certain moves that tend to the solution. ●However, certain moves that may or may not lead to the solution are accepted or rejected with a certain small probability. ●The final shape is obtained as a result of a
  • 21. Performance ●SA is a general solution method that is easily applicable to a large number of problems ●"Tuning" of the parameters (initial T, decrement of T, stop criterion) is relatively easy ●Generally the quality of the results of SA is good, although it can take a lot of time ●Results are generally not reproducible: another run can give a different result ●SA can leave an optimal solution and not find it again (so try to remember the best solution found so far) ●Proven to find the optimum under certain conditions;