SlideShare ist ein Scribd-Unternehmen logo
1 von 16
1
MAIN PROBLEM -> OPTIMIZATION
Local
Global
Optimization
search
techniques
2
TABU SEARCH , GREEDY
APPROACH , ETC
SIMMULATED ANNEALING,
PARTICLE SWARM OPTIMIZATION
(PSO),GRADIENT DESCENT ETC
Difficulty in Searching Global Optima3
starting
point
descend
direction
local minima
global minima
barrier to local search
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
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.
5
Simulated Annealing6
Local Search
Solution space
Costfunction
?
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)
7
Simulation Of Cooling (Metropolis 1953)
 At a fixed temperature T :
 Perturb (randomly) the current state to a new state
 E is the difference in energy between current and new state
 If E < 0 (new state is lower), accept new state as current state
 If E  0 , accept new state with probability
Pr (accepted) = exp (- E / kB.T)
 Eventually the systems evolves into thermal equilibrium at
temperature T .
 When equilibrium is reached, temperature T can be lowered and
the process can be repeated
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
9
Simulated Annealing
 Same algorithm can be used for combinatorial optimization
problems:
 Energy E corresponds to the Cost function C
 Temperature T corresponds to control parameter c
Pr { configuration = i } = 1/Q(c) . exp (-C(i) / c)
C Cost
c Control parameter
Q(c) Normalization factor (not important)
10
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
11
12 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.
13
 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.
 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.
14
References15
 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.
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

Simulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithmSimulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithm
Akhil Prabhakar
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
Slideshare
 

Was ist angesagt? (20)

Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
 
Simulated Annealing
Simulated AnnealingSimulated Annealing
Simulated Annealing
 
Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
 
Metaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical AnalysisMetaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical Analysis
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
 
Informed search
Informed searchInformed search
Informed search
 
Metaheuristics
MetaheuristicsMetaheuristics
Metaheuristics
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Tabu search
Tabu searchTabu search
Tabu search
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
AI: Logic in AI
AI: Logic in AIAI: Logic in AI
AI: Logic in AI
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Simulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithmSimulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithm
 
Introduction to optimization Problems
Introduction to optimization ProblemsIntroduction to optimization Problems
Introduction to optimization Problems
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
 
Metaheuristics
MetaheuristicsMetaheuristics
Metaheuristics
 
Optimization for Deep Learning
Optimization for Deep LearningOptimization for Deep Learning
Optimization for Deep Learning
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithm
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
 

Andere mochten auch (8)

Configurable Robots
Configurable RobotsConfigurable Robots
Configurable Robots
 
Probing Systems seminar
Probing Systems seminarProbing Systems seminar
Probing Systems seminar
 
TabuSearch FINAL
TabuSearch  FINALTabuSearch  FINAL
TabuSearch FINAL
 
Inspiration to Application: A Tutorial on Artificial Immune Systems
Inspiration to Application: A Tutorial on Artificial Immune SystemsInspiration to Application: A Tutorial on Artificial Immune Systems
Inspiration to Application: A Tutorial on Artificial Immune Systems
 
Chapitre 2 le recuit simulé
Chapitre 2 le recuit simuléChapitre 2 le recuit simulé
Chapitre 2 le recuit simulé
 
Metaheurística Simulated Annealing
Metaheurística Simulated AnnealingMetaheurística Simulated Annealing
Metaheurística Simulated Annealing
 
Material Selection
Material SelectionMaterial Selection
Material Selection
 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentation
 

Ähnlich wie Simulated Annealing - A Optimisation Technique

Automatic generation-control-of-multi-area-electric-energy-systems-using-modi...
Automatic generation-control-of-multi-area-electric-energy-systems-using-modi...Automatic generation-control-of-multi-area-electric-energy-systems-using-modi...
Automatic generation-control-of-multi-area-electric-energy-systems-using-modi...
Cemal Ardil
 
httpscatatanabimanyu.files.wordpress.com201109heat-transfer-cengel-solution-m...
httpscatatanabimanyu.files.wordpress.com201109heat-transfer-cengel-solution-m...httpscatatanabimanyu.files.wordpress.com201109heat-transfer-cengel-solution-m...
httpscatatanabimanyu.files.wordpress.com201109heat-transfer-cengel-solution-m...
AbdlaDoski
 
energy minimization
energy minimizationenergy minimization
energy minimization
pradeep kore
 

Ähnlich wie Simulated Annealing - A Optimisation Technique (20)

SimulatedAnnealing.ppt
SimulatedAnnealing.pptSimulatedAnnealing.ppt
SimulatedAnnealing.ppt
 
Simulated Annealing for Optimal Power Flow (OPF)
Simulated Annealing for Optimal Power Flow (OPF)Simulated Annealing for Optimal Power Flow (OPF)
Simulated Annealing for Optimal Power Flow (OPF)
 
HILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENG
HILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENGHILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENG
HILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENG
 
B-G-3
B-G-3B-G-3
B-G-3
 
Energy minimization
Energy minimizationEnergy minimization
Energy minimization
 
ICRAME nishanth
ICRAME nishanthICRAME nishanth
ICRAME nishanth
 
Automatic generation-control-of-multi-area-electric-energy-systems-using-modi...
Automatic generation-control-of-multi-area-electric-energy-systems-using-modi...Automatic generation-control-of-multi-area-electric-energy-systems-using-modi...
Automatic generation-control-of-multi-area-electric-energy-systems-using-modi...
 
An Efficient Tangent Scheme For Solving Phase-Change Problems
An Efficient Tangent Scheme For Solving Phase-Change ProblemsAn Efficient Tangent Scheme For Solving Phase-Change Problems
An Efficient Tangent Scheme For Solving Phase-Change Problems
 
computationalchemistry_12-6.ppt
computationalchemistry_12-6.pptcomputationalchemistry_12-6.ppt
computationalchemistry_12-6.ppt
 
Icmmt 2015 paper-5
Icmmt 2015 paper-5Icmmt 2015 paper-5
Icmmt 2015 paper-5
 
ICMMT-2015_paper_5
ICMMT-2015_paper_5ICMMT-2015_paper_5
ICMMT-2015_paper_5
 
sustech.2022.8671326.docx
sustech.2022.8671326.docxsustech.2022.8671326.docx
sustech.2022.8671326.docx
 
Simulated annealing presentation
Simulated annealing presentation Simulated annealing presentation
Simulated annealing presentation
 
A Self-Tuned Simulated Annealing Algorithm using Hidden Markov Mode
A Self-Tuned Simulated Annealing Algorithm using Hidden Markov ModeA Self-Tuned Simulated Annealing Algorithm using Hidden Markov Mode
A Self-Tuned Simulated Annealing Algorithm using Hidden Markov Mode
 
energy hub IREC.pptx
energy hub IREC.pptxenergy hub IREC.pptx
energy hub IREC.pptx
 
Analysis of-heat-flow-in-downdraft-gasifier
Analysis of-heat-flow-in-downdraft-gasifier Analysis of-heat-flow-in-downdraft-gasifier
Analysis of-heat-flow-in-downdraft-gasifier
 
httpscatatanabimanyu.files.wordpress.com201109heat-transfer-cengel-solution-m...
httpscatatanabimanyu.files.wordpress.com201109heat-transfer-cengel-solution-m...httpscatatanabimanyu.files.wordpress.com201109heat-transfer-cengel-solution-m...
httpscatatanabimanyu.files.wordpress.com201109heat-transfer-cengel-solution-m...
 
ECTC Presentation
ECTC PresentationECTC Presentation
ECTC Presentation
 
energy minimization
energy minimizationenergy minimization
energy minimization
 
Thermodynamics kinetics
Thermodynamics kineticsThermodynamics kinetics
Thermodynamics kinetics
 

Kürzlich hochgeladen

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Kürzlich hochgeladen (20)

(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 

Simulated Annealing - A Optimisation Technique

  • 1. 1
  • 2. MAIN PROBLEM -> OPTIMIZATION Local Global Optimization search techniques 2 TABU SEARCH , GREEDY APPROACH , ETC SIMMULATED ANNEALING, PARTICLE SWARM OPTIMIZATION (PSO),GRADIENT DESCENT ETC
  • 3. Difficulty in Searching Global Optima3 starting point descend direction local minima global minima barrier to local search
  • 4. 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
  • 5. 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. 5
  • 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) 7
  • 8. Simulation Of Cooling (Metropolis 1953)  At a fixed temperature T :  Perturb (randomly) the current state to a new state  E is the difference in energy between current and new state  If E < 0 (new state is lower), accept new state as current state  If E  0 , accept new state with probability Pr (accepted) = exp (- E / kB.T)  Eventually the systems evolves into thermal equilibrium at temperature T .  When equilibrium is reached, temperature T can be lowered and the process can be repeated 8
  • 9. 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 9
  • 10. Simulated Annealing  Same algorithm can be used for combinatorial optimization problems:  Energy E corresponds to the Cost function C  Temperature T corresponds to control parameter c Pr { configuration = i } = 1/Q(c) . exp (-C(i) / c) C Cost c Control parameter Q(c) Normalization factor (not important) 10
  • 11. 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 11
  • 12. 12 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.
  • 13. 13  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.  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.
  • 14. Conclusions  Simulated Annealing algorithms are usually better than greedy algorithms, when it comes to problems that have numerous locally optimum solutions. 14
  • 15. References15  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.