SlideShare a Scribd company logo
2
Most read
5
Most read
7
Most read
Present ed by:
Amarendra Kumar Saroj ( Rol l
No: 182901)
Ram Kumar Basnet ( Rol l No: 182921)
ME Comput er Engi neeri ng [ III
Semest er]
Presentation on: Simulated Annealing (AI)
Si mul at ed
Anneal i ng
Local Search
al gori t hms
• Search algorithms like breadth-first, depth-first or
A* explore all the search space systematically by
keeping one or more paths in memory and by
recording which alternatives have been explored.
• When a goal is found, the path to that goal
constitutes a solution.
• Local search algorithms can be very helpful if we
are interested in the solution state but not in the
path to that goal. They operate only on the current
state and move into neighboring states .
Local Search
al gori t hms
• Local search algorithms have 2 key advantages:
• They use very little memory
• They can find reasonable solutions in large or
infinite (continuous) state spaces.
• Some examples of local search algorithms are:
• Hill-climbing
• Random walk
• Simulated annealing
Anneal i ng
• Annealing is a thermal process for obtaining low
energy states of a solid in a heat bath.
• The process contains two steps:
• Increase the temperature of the heat bath to a
maximum value at which the solid melts.
• Decrease carefully the temperature of the heat
bath until the particles arrange themselves in the
ground state of the solid. Ground state is a
minimum energy state of the solid.
• The ground state of the solid is obtained only if the
maximum temperature is high enough and the
cooling is done slowly.
Si mul at ed Anneal i ng
• The process of annealing can be simulated with
the Metropolis algorithm, which is based on Monte
Carlo techniques.
• We can apply this algorithm to generate a solution
to combinatorial optimization problems assuming
an analogy between them and physical many-
particle systems with the following equivalences:
• Solutions in the problem are equivalent to
states in a physical system.
• The cost of a solution is equivalent to the
“energy” of a state.
Si mul at ed Anneal i ng
• To apply simulated annealing with optimization purposes
we require the following:
• A successor function that returns a “close” neighboring
solution given the actual one. This will work as the
“disturbance” for the particles of the system.
• A target function to optimize that depends on the current
state of the system. This function will work as the energy
of the system.
• The search is started with a randomized state. In a polling
loop we will move to neighboring states always accepting
the moves that decrease the energy while only accepting
bad moves accordingly to a probability distribution
dependent on the “temperature” of the system.
Si mul at ed Anneal i ng
Al gori t hm
Si mul at ed Anneal i ng
Al gori t hm
Si mul at ed Anneal i ng: The
code
1. Create random initial solution γ
2. Eold=cost(γ);
3. for(temp=tempmax; temp>=tempmin;temp=next_temp(temp) ) {
4. for(i=0;i<imax; i++ ) {
5. succesor_func(γ); //this is a randomized function
6. Enew=cost(γ);
7. delta=Enew-Eold;
8. if(delta>0)
9. if(random() >= exp(-delta/K*temp);
10. undo_func(γ); //rejected bad move
11. else
12. Eold=Enew //accepted bad move
13. else
14. Eold=Enew; //always accept good moves
}
}
Si mul at ed Anneal i ng
• Acceptance criterion and cooling schedule
Pr act i cal I ssues wi t h
si mul at ed anneal i ng
• Cost function must be carefully developed, it has to
be “fractal and smooth”.
• The energy function of the left would work with SA
while the one of the right would fail.
Pr act i cal I ssues wi t h
si mul at ed anneal i ng
• The cost function should be fast it is going to be
called “millions” of times.
• The best is if we just have to calculate the deltas
produced by the modification instead of traversing
through all the state.
• This is dependent on the application.
Pr act i cal I ssues wi t h
si mul at ed anneal i ng
• In asymptotic convergence simulated annealing
converges to globally optimal solutions.
• In practice, the convergence of the algorithm
depends of the cooling schedule.
• There are some suggestion about the cooling
schedule but it stills requires a lot of testing and it
usually depends on the application.
• Start at a temperature where 50% of bad
moves are accepted.
• Each cooling step reduces the temperature by
10%
• The number of iterations at each temperature
should attempt to move between 1-10 times
each “element” of the state.
• The final temperature should not accept bad
moves; this step is known as the quenching
step.
Pr act i cal I ssues wi t h
si mul at ed anneal i ng
Appl i cat i ons
• Basic Problems
• Traveling salesman
• Graph partitioning
• Matching problems
• Graph coloring
• Scheduling
• Engineering
• VLSI design
• Placement
• Routing
• Array logic minimization
• Layout
• Facilities layout
• Image processing
• Code design in information theory
Ref er ences
• Aarst, “Simulated annealing and Boltzman
machines”, Wiley, 1989.
• Duda Hart Stork, “Pattern Classification”, Wiley
Interscience, 2001.
• Otten, “The Annealing Algorithm”, Kluwer
Academic Publishers, 1989.
• Sherwani, “Algorithms for VLSI Physical Design
Automation”, Kluwer Academic Publishers, 1999.

More Related Content

PPTX
Simulated Annealing - A Optimisation Technique
PPTX
Simulated annealing-global optimization algorithm
PPTX
Simulated Annealing
PDF
Genetik Algoritma & Programlama (Dr.Hakan Erdun)
PPTX
Ant colony optimization
PPTX
AI: Learning in AI
PPT
Simulated annealing
PPTX
Polar bear optimization for ED
Simulated Annealing - A Optimisation Technique
Simulated annealing-global optimization algorithm
Simulated Annealing
Genetik Algoritma & Programlama (Dr.Hakan Erdun)
Ant colony optimization
AI: Learning in AI
Simulated annealing
Polar bear optimization for ED

What's hot (20)

PDF
Simulated Annealing
PPT
Simulated Annealing
PPTX
Multiclass classification of imbalanced data
ODP
Production system in ai
PPTX
Basics of Soft Computing
PPTX
Genetic algorithms
PPTX
Boosting Approach to Solving Machine Learning Problems
PPTX
MACHINE LEARNING - GENETIC ALGORITHM
PPTX
Machine learning session4(linear regression)
PPTX
Introduction to Machine Learning
PPTX
Deep learning.pptx
PDF
Decision trees in Machine Learning
PDF
Machine Learning Algorithm - Decision Trees
PPTX
Data Science Crash Course
PPTX
Introduction to XGboost
PPTX
AI - Local Search - Hill Climbing
PPT
Fuzzy logic control
PPT
Perceptron
PDF
Bias and variance trade off
Simulated Annealing
Simulated Annealing
Multiclass classification of imbalanced data
Production system in ai
Basics of Soft Computing
Genetic algorithms
Boosting Approach to Solving Machine Learning Problems
MACHINE LEARNING - GENETIC ALGORITHM
Machine learning session4(linear regression)
Introduction to Machine Learning
Deep learning.pptx
Decision trees in Machine Learning
Machine Learning Algorithm - Decision Trees
Data Science Crash Course
Introduction to XGboost
AI - Local Search - Hill Climbing
Fuzzy logic control
Perceptron
Bias and variance trade off
Ad

Similar to Simulated annealing presentation (20)

PPT
SimulatedAnnealing.ppt
PPTX
Simulated Annealing for Engineering Excellence: Harnessing Probabilistic Opti...
PDF
Simulated annealing and it's explanation
PPT
Chapter 03 - artifi HEURISTIC SEARCH.ppt
PDF
8.-Hill-Climbing-Algorithm in Artificial.pdf
PPTX
Energy minimization
PPT
Heuristc Search Techniques
PDF
Optimization technique
PDF
Numerical analysis genetic algorithms
PPT
UNIT-5 Optimization (Part-1).ppt
PPTX
HILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENG
PPT
Heuristic Search Techniques Unit -II.ppt
PPTX
energy hub IREC.pptx
PDF
studying-desorption-krypton
PPTX
Searching Algorithms AI and Machine Learning
PPTX
Lec 6 bsc csit
PPTX
Local search algorithm
PPTX
Introducción a las metaheurísticas de trayectoria
PPTX
UNIT 2 HILLclimbling 19geyebshshsb .pptx
PDF
Simulated Annealing for Optimal Power Flow (OPF)
SimulatedAnnealing.ppt
Simulated Annealing for Engineering Excellence: Harnessing Probabilistic Opti...
Simulated annealing and it's explanation
Chapter 03 - artifi HEURISTIC SEARCH.ppt
8.-Hill-Climbing-Algorithm in Artificial.pdf
Energy minimization
Heuristc Search Techniques
Optimization technique
Numerical analysis genetic algorithms
UNIT-5 Optimization (Part-1).ppt
HILL CLIMBING FOR ELECTRONICS AND COMMUNICATION ENG
Heuristic Search Techniques Unit -II.ppt
energy hub IREC.pptx
studying-desorption-krypton
Searching Algorithms AI and Machine Learning
Lec 6 bsc csit
Local search algorithm
Introducción a las metaheurísticas de trayectoria
UNIT 2 HILLclimbling 19geyebshshsb .pptx
Simulated Annealing for Optimal Power Flow (OPF)
Ad

Recently uploaded (20)

PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
PPT on Performance Review to get promotions
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
web development for engineering and engineering
PPT
Project quality management in manufacturing
PPTX
Sustainable Sites - Green Building Construction
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
bas. eng. economics group 4 presentation 1.pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
Strings in CPP - Strings in C++ are sequences of characters used to store and...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPT on Performance Review to get promotions
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
CH1 Production IntroductoryConcepts.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
additive manufacturing of ss316l using mig welding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
web development for engineering and engineering
Project quality management in manufacturing
Sustainable Sites - Green Building Construction

Simulated annealing presentation

  • 1. Present ed by: Amarendra Kumar Saroj ( Rol l No: 182901) Ram Kumar Basnet ( Rol l No: 182921) ME Comput er Engi neeri ng [ III Semest er] Presentation on: Simulated Annealing (AI)
  • 2. Si mul at ed Anneal i ng
  • 3. Local Search al gori t hms • Search algorithms like breadth-first, depth-first or A* explore all the search space systematically by keeping one or more paths in memory and by recording which alternatives have been explored. • When a goal is found, the path to that goal constitutes a solution. • Local search algorithms can be very helpful if we are interested in the solution state but not in the path to that goal. They operate only on the current state and move into neighboring states .
  • 4. Local Search al gori t hms • Local search algorithms have 2 key advantages: • They use very little memory • They can find reasonable solutions in large or infinite (continuous) state spaces. • Some examples of local search algorithms are: • Hill-climbing • Random walk • Simulated annealing
  • 5. Anneal i ng • Annealing is a thermal process for obtaining low energy states of a solid in a heat bath. • The process contains two steps: • Increase the temperature of the heat bath to a maximum value at which the solid melts. • Decrease carefully the temperature of the heat bath until the particles arrange themselves in the ground state of the solid. Ground state is a minimum energy state of the solid. • The ground state of the solid is obtained only if the maximum temperature is high enough and the cooling is done slowly.
  • 6. Si mul at ed Anneal i ng • The process of annealing can be simulated with the Metropolis algorithm, which is based on Monte Carlo techniques. • We can apply this algorithm to generate a solution to combinatorial optimization problems assuming an analogy between them and physical many- particle systems with the following equivalences: • Solutions in the problem are equivalent to states in a physical system. • The cost of a solution is equivalent to the “energy” of a state.
  • 7. Si mul at ed Anneal i ng • To apply simulated annealing with optimization purposes we require the following: • A successor function that returns a “close” neighboring solution given the actual one. This will work as the “disturbance” for the particles of the system. • A target function to optimize that depends on the current state of the system. This function will work as the energy of the system. • The search is started with a randomized state. In a polling loop we will move to neighboring states always accepting the moves that decrease the energy while only accepting bad moves accordingly to a probability distribution dependent on the “temperature” of the system.
  • 8. Si mul at ed Anneal i ng Al gori t hm
  • 9. Si mul at ed Anneal i ng Al gori t hm
  • 10. Si mul at ed Anneal i ng: The code 1. Create random initial solution γ 2. Eold=cost(γ); 3. for(temp=tempmax; temp>=tempmin;temp=next_temp(temp) ) { 4. for(i=0;i<imax; i++ ) { 5. succesor_func(γ); //this is a randomized function 6. Enew=cost(γ); 7. delta=Enew-Eold; 8. if(delta>0) 9. if(random() >= exp(-delta/K*temp); 10. undo_func(γ); //rejected bad move 11. else 12. Eold=Enew //accepted bad move 13. else 14. Eold=Enew; //always accept good moves } }
  • 11. Si mul at ed Anneal i ng • Acceptance criterion and cooling schedule
  • 12. Pr act i cal I ssues wi t h si mul at ed anneal i ng • Cost function must be carefully developed, it has to be “fractal and smooth”. • The energy function of the left would work with SA while the one of the right would fail.
  • 13. Pr act i cal I ssues wi t h si mul at ed anneal i ng • The cost function should be fast it is going to be called “millions” of times. • The best is if we just have to calculate the deltas produced by the modification instead of traversing through all the state. • This is dependent on the application.
  • 14. Pr act i cal I ssues wi t h si mul at ed anneal i ng • In asymptotic convergence simulated annealing converges to globally optimal solutions. • In practice, the convergence of the algorithm depends of the cooling schedule. • There are some suggestion about the cooling schedule but it stills requires a lot of testing and it usually depends on the application.
  • 15. • Start at a temperature where 50% of bad moves are accepted. • Each cooling step reduces the temperature by 10% • The number of iterations at each temperature should attempt to move between 1-10 times each “element” of the state. • The final temperature should not accept bad moves; this step is known as the quenching step. Pr act i cal I ssues wi t h si mul at ed anneal i ng
  • 16. Appl i cat i ons • Basic Problems • Traveling salesman • Graph partitioning • Matching problems • Graph coloring • Scheduling • Engineering • VLSI design • Placement • Routing • Array logic minimization • Layout • Facilities layout • Image processing • Code design in information theory
  • 17. Ref er ences • Aarst, “Simulated annealing and Boltzman machines”, Wiley, 1989. • Duda Hart Stork, “Pattern Classification”, Wiley Interscience, 2001. • Otten, “The Annealing Algorithm”, Kluwer Academic Publishers, 1989. • Sherwani, “Algorithms for VLSI Physical Design Automation”, Kluwer Academic Publishers, 1999.