SlideShare a Scribd company logo
1 of 24
MAIN PROBLEM -> OPTIMIZATION
Local
Global
Optimization
search
techniques
4/28/2024 1
TABU SEARCH ,
GREEDY APPROACH ,
STEEPEST DESCEND,
ETC
SIMMULATED ANNEALING,
PARTICLE SWARM OPTIMIZATION
(PSO),GRADIENT DESCENT ETC
Difficulty in Searching Global
Optima
4/28/2024 2
starting
point
descend
direction
local minima
global minima
barrier to local search
Simulated Annealing(SA)
• SA is a global optimization technique.
• SA distinguishes between different local optima.
 SA is a memory less algorithm, the algorithm does not use
any information gathered during the search
 SA is motivated by an analogy to annealing in solids.
 Simulated Annealing – an iterative improvement
algorithm.
4/28/2024 3
Consequences of the Occasional Ascents
4/28/2024 4
Help escaping the
local optima.
desired effect
Might pass global optima
after reaching it
adverse effect
Background: Annealing
 Simulated annealing is so named because of its analogy to the process
of physical annealing with solids,.
 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.
 If the cooling schedule is sufficiently slow, the final configuration
results in a solid with such superior structural integrity.
 Simulated annealing establishes the connection between this type of
thermodynamic behaviour and the search for global minima for a
discrete optimization problem.
4/28/2024 5
Background (cont..)
 Solid is heated to melting point
 High-energy, high-entropy state
 Removes defects/irregularities
 Temp is very slowly reduced
 Recrystallization occurs (regular structure)
 New internal state of diffused atoms
 Fast cooling induces fragile structure
4/28/2024 6
Control of Annealing Process
4/28/2024 7
Acceptance of a search step (Metropolis
Criterion):
Assume the performance change in the
search direction is .

Accept a ascending step only if it pass a
random test,
Always accept a descending step, i.e. 0


   
1
,
0
exp random
T 


Relationship between Physical
Annealing and Simulated Annealing
Thermodynamic Simulation Combinatorial Optimization
System states solutions
Energy Cost
Change of State Neighbouring Solutions
Temperature Control Parameter T
Frozen State Heuristic Solution
4/28/2024 8
Stopping Criterion
• A given minimum value of the temperature has been
reached.
• A certain number of iterations (or temperatures) has
passed without acceptance of a new solution.
• A specified number of total iterations has been
executed
4/28/2024 9
10
Flow Chart:
Start With an initial solution
Add new random stand at
random period
Improvement?
Accept new Solution
Stop criteria?
Stop
P(delta)>rand?
yes
yes
yes
no
no
no
P(delta)  1 when c is
very high.
P(delta)  0 when c is
very small
rand (0,1)
Simulated Annealing Algorithm
• Initial temperature (TI)
• Temperature length (TL) : number of iterations at a
given temperature
• cooling ratio (function f): rate at which temperature is
reduced .
f(T) = aT ,
where a is a constant, 0.8 ≤ a ≤ 0.99
(most often closer to 0.99)
 stopping criterion
4/28/2024 11
Simulated Annealing Algorithm
construct initial solution x0; xnow = x0
set initial temperature T = TI
repeat for i = 1 to TL do
generate randomly a neighbouring solution x′ ∈ N(xnow)
compute change of cost ΔC = C(x′) - C(xnow)
if ΔC ≤ 0 then
xnow = x′ (accept new state)
else
Generate q = random(0,1)
if q < exp(-ΔC /T) then xnow = x′ end if
end if
end for
set new temperature T = f(T)
until stopping criterion
return solution corresponding to the minimum cost function
4/28/2024 12
Convergence of simulated annealing
HILL CLIMBING
HILL CLIMBING
HILL CLIMBING
COST
FUNCTION,
C
NUMBER OF ITERATIONS
AT INIT_TEMP
AT FINAL_TEMP
Move accepted with
probability
= e-(^C/temp)
Unconditional Acceptance
4/28/2024 13
Implementation of Simulated
Annealing
4/28/2024 14
 Understand the result:
• This is a stochastic algorithm. The
outcome may be different at different
trials.
• Convergence to global optima can only
be realized in asymptotic sense.
Qualitative Analysis
 Randomized local search.
 Is simulated annealing greedy?
 Controlled greed.
 Is a greedy algorithm better? Where is the
difference?
 Explain with - The ball-on-terrain example.
4/28/2024 15
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?
4/28/2024 16
Ball on terrain example – SA vs. Greedy
Algorithms
Greedy Algorithm
gets stuck here!
Locally Optimum
Solution.
Simulated Annealing explores
more. Chooses this move with a
small probability (Hill Climbing)
Upon a large no. of iterations,
SA converges to this solution.
Initial position
of the ball
4/28/2024 17
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 large
number of iterations.
4/28/2024 18
Applications
 Circuit partitioning and placement.
 Hardware/Software Partitioning
 Graph partitioning
 VLSI: Placement, routing.
 Image processing
 Strategy scheduling for capital products with complex
product structure.
 Umpire scheduling in US Open Tennis tournament!
 Event-based learning situations.
 etc
4/28/2024 19
4/28/2024 20
Advantages:
• can deal with arbitrary systems and cost functions
• statistically guarantees finding an optimal solution
• is relatively easy to code, even for complex
problems.
• generally gives a ``good'' solution
This makes annealing an attractive option for
optimization problems where heuristic (specialized
or problem specific) methods are not available.
4/28/2024 21
•Repeatedly annealing with a 1/log k schedule is very slow,
especially if the cost function is expensive to compute.
•For problems where the energy landscape is smooth, or there are
few local minima, SA is overkill - simpler, faster methods (e.g.,
gradient descent) will work better. But generally don't know what
the energy landscape is for a particular problem.
•Heuristic methods, which are problem-specific or take advantage of
extra information about the system, will often be better than general
methods, although SA is often comparable to heuristics.
•The method cannot tell whether it has found an optimal solution.
Some other complimentary method (e.g. branch and bound) is
required to do this.
Conclusions
 Simulated Annealing algorithms are usually better
than greedy algorithms, when it comes to
problems that have numerous locally optimum
solutions.
 Simulated Annealing is not the best solution to
circuit partitioning or placement. Network flow
approach to solving these problems functions
much faster.
 Simulated Annealing guarantees a convergence
upon running sufficiently large number of
iterations.
4/28/2024 22
Reference:
4/28/2024 23
• P.J.M. van Laarhoven, E.H.L. Aarts, Simulated Annealing:
Theory and Applications, Kluwer Academic Publisher,
1987.
• A. A. Zhigljavsky, Theory of Global Random Search,
Kluwer Academic Publishers, 1991.
HILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENG

More Related Content

Similar to HILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENG

Ch19_Response_Surface_Methodology.pptx
Ch19_Response_Surface_Methodology.pptxCh19_Response_Surface_Methodology.pptx
Ch19_Response_Surface_Methodology.pptx
SriSusilawatiIslam
 
Effectiveness and Efficiency of Particle Swarm Optimization Technique in Inve...
Effectiveness and Efficiency of Particle Swarm Optimization Technique in Inve...Effectiveness and Efficiency of Particle Swarm Optimization Technique in Inve...
Effectiveness and Efficiency of Particle Swarm Optimization Technique in Inve...
Soheyl
 
Simulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithmSimulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithm
Akhil Prabhakar
 
Simulated annealing.ppt
Simulated annealing.pptSimulated annealing.ppt
Simulated annealing.ppt
Kaal Nath
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
butest
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
butest
 
GLM & GBM in H2O
GLM & GBM in H2OGLM & GBM in H2O
GLM & GBM in H2O
Sri Ambati
 
Fluent Introduction - Some Best Practice_._.pptx
Fluent Introduction - Some Best Practice_._.pptxFluent Introduction - Some Best Practice_._.pptx
Fluent Introduction - Some Best Practice_._.pptx
LibinAbrahamKonattu
 

Similar to HILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENG (20)

Ch19_Response_Surface_Methodology.pptx
Ch19_Response_Surface_Methodology.pptxCh19_Response_Surface_Methodology.pptx
Ch19_Response_Surface_Methodology.pptx
 
Advanced DOE with Minitab (presentation in Costa Rica)
Advanced DOE with Minitab (presentation in Costa Rica)Advanced DOE with Minitab (presentation in Costa Rica)
Advanced DOE with Minitab (presentation in Costa Rica)
 
Effectiveness and Efficiency of Particle Swarm Optimization Technique in Inve...
Effectiveness and Efficiency of Particle Swarm Optimization Technique in Inve...Effectiveness and Efficiency of Particle Swarm Optimization Technique in Inve...
Effectiveness and Efficiency of Particle Swarm Optimization Technique in Inve...
 
Firefly exact MCMC for Big Data
Firefly exact MCMC for Big DataFirefly exact MCMC for Big Data
Firefly exact MCMC for Big Data
 
Simulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithmSimulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithm
 
Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
 
Simulated annealing.ppt
Simulated annealing.pptSimulated annealing.ppt
Simulated annealing.ppt
 
Placement and algorithm.
Placement and algorithm.Placement and algorithm.
Placement and algorithm.
 
Class13_Quicksort_Algorithm.pdf
Class13_Quicksort_Algorithm.pdfClass13_Quicksort_Algorithm.pdf
Class13_Quicksort_Algorithm.pdf
 
Facebook Talk at Netflix ML Platform meetup Sep 2019
Facebook Talk at Netflix ML Platform meetup Sep 2019Facebook Talk at Netflix ML Platform meetup Sep 2019
Facebook Talk at Netflix ML Platform meetup Sep 2019
 
2local.pdf
2local.pdf2local.pdf
2local.pdf
 
Optimization Simulated Annealing
Optimization Simulated AnnealingOptimization Simulated Annealing
Optimization Simulated Annealing
 
2007 Oral Preliminary Defense
2007 Oral Preliminary Defense2007 Oral Preliminary Defense
2007 Oral Preliminary Defense
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
 
GLM & GBM in H2O
GLM & GBM in H2OGLM & GBM in H2O
GLM & GBM in H2O
 
Fluent Introduction - Some Best Practice_._.pptx
Fluent Introduction - Some Best Practice_._.pptxFluent Introduction - Some Best Practice_._.pptx
Fluent Introduction - Some Best Practice_._.pptx
 
Analysis and Design of Algorithms
Analysis and Design of AlgorithmsAnalysis and Design of Algorithms
Analysis and Design of Algorithms
 
Undergraduate Research - Final presentation
Undergraduate Research - Final presentationUndergraduate Research - Final presentation
Undergraduate Research - Final presentation
 
B-G-3
B-G-3B-G-3
B-G-3
 

More from neelamsanjeevkumar

More from neelamsanjeevkumar (20)

simulated aneeleaning in artificial intelligence .pptx
simulated aneeleaning in artificial intelligence .pptxsimulated aneeleaning in artificial intelligence .pptx
simulated aneeleaning in artificial intelligence .pptx
 
Feed forward back propogation algorithm .pptx
Feed forward back propogation algorithm .pptxFeed forward back propogation algorithm .pptx
Feed forward back propogation algorithm .pptx
 
IOT Unit 3 for engineering second year .pptx
IOT Unit 3 for engineering second year .pptxIOT Unit 3 for engineering second year .pptx
IOT Unit 3 for engineering second year .pptx
 
Genetic-Algorithms forv artificial .ppt
Genetic-Algorithms forv artificial  .pptGenetic-Algorithms forv artificial  .ppt
Genetic-Algorithms forv artificial .ppt
 
Genetic_Algorithms_genetic for_data .ppt
Genetic_Algorithms_genetic for_data .pptGenetic_Algorithms_genetic for_data .ppt
Genetic_Algorithms_genetic for_data .ppt
 
Genetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.pptGenetic-Algorithms for machine learning and ai.ppt
Genetic-Algorithms for machine learning and ai.ppt
 
Stepwise Selection Choosing the Optimal Model .ppt
Stepwise Selection  Choosing the Optimal Model .pptStepwise Selection  Choosing the Optimal Model .ppt
Stepwise Selection Choosing the Optimal Model .ppt
 
the connection of iot with lora pan which enable
the connection of iot with lora pan which enablethe connection of iot with lora pan which enable
the connection of iot with lora pan which enable
 
what is lorapan ,explanation of iot module with
what is lorapan ,explanation of iot module withwhat is lorapan ,explanation of iot module with
what is lorapan ,explanation of iot module with
 
What is First Order Logic in AI or FOL in AI.docx
What is First Order Logic in AI or FOL in AI.docxWhat is First Order Logic in AI or FOL in AI.docx
What is First Order Logic in AI or FOL in AI.docx
 
unit2_mental objects pruning and game theory .pptx
unit2_mental objects pruning and game theory .pptxunit2_mental objects pruning and game theory .pptx
unit2_mental objects pruning and game theory .pptx
 
2_RaspberryPi presentation.pptx
2_RaspberryPi presentation.pptx2_RaspberryPi presentation.pptx
2_RaspberryPi presentation.pptx
 
LINEAR REGRESSION.pptx
LINEAR REGRESSION.pptxLINEAR REGRESSION.pptx
LINEAR REGRESSION.pptx
 
Adaline and Madaline.ppt
Adaline and Madaline.pptAdaline and Madaline.ppt
Adaline and Madaline.ppt
 
Neural networks are parallel computing devices.docx.pdf
Neural networks are parallel computing devices.docx.pdfNeural networks are parallel computing devices.docx.pdf
Neural networks are parallel computing devices.docx.pdf
 
PRNN syllabus.pdf
PRNN syllabus.pdfPRNN syllabus.pdf
PRNN syllabus.pdf
 
PRNN syllabus.pdf
PRNN syllabus.pdfPRNN syllabus.pdf
PRNN syllabus.pdf
 
backprop.ppt
backprop.pptbackprop.ppt
backprop.ppt
 
feedforward-network-
feedforward-network-feedforward-network-
feedforward-network-
 
An_Introduction_To_The_Backpropagation_A.ppt
An_Introduction_To_The_Backpropagation_A.pptAn_Introduction_To_The_Backpropagation_A.ppt
An_Introduction_To_The_Backpropagation_A.ppt
 

Recently uploaded

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Recently uploaded (20)

Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 

HILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENG

  • 1. MAIN PROBLEM -> OPTIMIZATION Local Global Optimization search techniques 4/28/2024 1 TABU SEARCH , GREEDY APPROACH , STEEPEST DESCEND, ETC SIMMULATED ANNEALING, PARTICLE SWARM OPTIMIZATION (PSO),GRADIENT DESCENT ETC
  • 2. Difficulty in Searching Global Optima 4/28/2024 2 starting point descend direction local minima global minima barrier to local search
  • 3. Simulated Annealing(SA) • SA is a global optimization technique. • SA distinguishes between different local optima.  SA is a memory less algorithm, the algorithm does not use any information gathered during the search  SA is motivated by an analogy to annealing in solids.  Simulated Annealing – an iterative improvement algorithm. 4/28/2024 3
  • 4. Consequences of the Occasional Ascents 4/28/2024 4 Help escaping the local optima. desired effect Might pass global optima after reaching it adverse effect
  • 5. Background: Annealing  Simulated annealing is so named because of its analogy to the process of physical annealing with solids,.  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.  If the cooling schedule is sufficiently slow, the final configuration results in a solid with such superior structural integrity.  Simulated annealing establishes the connection between this type of thermodynamic behaviour and the search for global minima for a discrete optimization problem. 4/28/2024 5
  • 6. Background (cont..)  Solid is heated to melting point  High-energy, high-entropy state  Removes defects/irregularities  Temp is very slowly reduced  Recrystallization occurs (regular structure)  New internal state of diffused atoms  Fast cooling induces fragile structure 4/28/2024 6
  • 7. Control of Annealing Process 4/28/2024 7 Acceptance of a search step (Metropolis Criterion): Assume the performance change in the search direction is .  Accept a ascending step only if it pass a random test, Always accept a descending step, i.e. 0       1 , 0 exp random T   
  • 8. Relationship between Physical Annealing and Simulated Annealing Thermodynamic Simulation Combinatorial Optimization System states solutions Energy Cost Change of State Neighbouring Solutions Temperature Control Parameter T Frozen State Heuristic Solution 4/28/2024 8
  • 9. Stopping Criterion • A given minimum value of the temperature has been reached. • A certain number of iterations (or temperatures) has passed without acceptance of a new solution. • A specified number of total iterations has been executed 4/28/2024 9
  • 10. 10 Flow Chart: Start With an initial solution Add new random stand at random period Improvement? Accept new Solution Stop criteria? Stop P(delta)>rand? yes yes yes no no no P(delta)  1 when c is very high. P(delta)  0 when c is very small rand (0,1)
  • 11. Simulated Annealing Algorithm • Initial temperature (TI) • Temperature length (TL) : number of iterations at a given temperature • cooling ratio (function f): rate at which temperature is reduced . f(T) = aT , where a is a constant, 0.8 ≤ a ≤ 0.99 (most often closer to 0.99)  stopping criterion 4/28/2024 11
  • 12. Simulated Annealing Algorithm construct initial solution x0; xnow = x0 set initial temperature T = TI repeat for i = 1 to TL do generate randomly a neighbouring solution x′ ∈ N(xnow) compute change of cost ΔC = C(x′) - C(xnow) if ΔC ≤ 0 then xnow = x′ (accept new state) else Generate q = random(0,1) if q < exp(-ΔC /T) then xnow = x′ end if end if end for set new temperature T = f(T) until stopping criterion return solution corresponding to the minimum cost function 4/28/2024 12
  • 13. Convergence of simulated annealing HILL CLIMBING HILL CLIMBING HILL CLIMBING COST FUNCTION, C NUMBER OF ITERATIONS AT INIT_TEMP AT FINAL_TEMP Move accepted with probability = e-(^C/temp) Unconditional Acceptance 4/28/2024 13
  • 14. Implementation of Simulated Annealing 4/28/2024 14  Understand the result: • This is a stochastic algorithm. The outcome may be different at different trials. • Convergence to global optima can only be realized in asymptotic sense.
  • 15. Qualitative Analysis  Randomized local search.  Is simulated annealing greedy?  Controlled greed.  Is a greedy algorithm better? Where is the difference?  Explain with - The ball-on-terrain example. 4/28/2024 15
  • 16. 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? 4/28/2024 16
  • 17. Ball on terrain example – SA vs. Greedy Algorithms Greedy Algorithm gets stuck here! Locally Optimum Solution. Simulated Annealing explores more. Chooses this move with a small probability (Hill Climbing) Upon a large no. of iterations, SA converges to this solution. Initial position of the ball 4/28/2024 17
  • 18. 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 large number of iterations. 4/28/2024 18
  • 19. Applications  Circuit partitioning and placement.  Hardware/Software Partitioning  Graph partitioning  VLSI: Placement, routing.  Image processing  Strategy scheduling for capital products with complex product structure.  Umpire scheduling in US Open Tennis tournament!  Event-based learning situations.  etc 4/28/2024 19
  • 20. 4/28/2024 20 Advantages: • can deal with arbitrary systems and cost functions • statistically guarantees finding an optimal solution • is relatively easy to code, even for complex problems. • generally gives a ``good'' solution This makes annealing an attractive option for optimization problems where heuristic (specialized or problem specific) methods are not available.
  • 21. 4/28/2024 21 •Repeatedly annealing with a 1/log k schedule is very slow, especially if the cost function is expensive to compute. •For problems where the energy landscape is smooth, or there are few local minima, SA is overkill - simpler, faster methods (e.g., gradient descent) will work better. But generally don't know what the energy landscape is for a particular problem. •Heuristic methods, which are problem-specific or take advantage of extra information about the system, will often be better than general methods, although SA is often comparable to heuristics. •The method cannot tell whether it has found an optimal solution. Some other complimentary method (e.g. branch and bound) is required to do this.
  • 22. Conclusions  Simulated Annealing algorithms are usually better than greedy algorithms, when it comes to problems that have numerous locally optimum solutions.  Simulated Annealing is not the best solution to circuit partitioning or placement. Network flow approach to solving these problems functions much faster.  Simulated Annealing guarantees a convergence upon running sufficiently large number of iterations. 4/28/2024 22
  • 23. Reference: 4/28/2024 23 • P.J.M. van Laarhoven, E.H.L. Aarts, Simulated Annealing: Theory and Applications, Kluwer Academic Publisher, 1987. • A. A. Zhigljavsky, Theory of Global Random Search, Kluwer Academic Publishers, 1991.