SlideShare a Scribd company logo
1 of 17
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

Similar to Simulated annealing presentation

SimulatedAnnealing.ppt
SimulatedAnnealing.pptSimulatedAnnealing.ppt
SimulatedAnnealing.pptVivekChawla19
 
Simulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithmSimulated annealing-global optimization algorithm
Simulated annealing-global optimization algorithmAkhil Prabhakar
 
Simulated Annealing
Simulated AnnealingSimulated Annealing
Simulated AnnealingJoy Dutta
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search TechniquesJismy .K.Jose
 
Numerical analysis genetic algorithms
Numerical analysis  genetic algorithmsNumerical analysis  genetic algorithms
Numerical analysis genetic algorithmsSHAMJITH KM
 
Optimization technique
Optimization techniqueOptimization technique
Optimization techniqueVimal Patel
 
UNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).pptUNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).pptTvVignesh3
 
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 ENGneelamsanjeevkumar
 
Heuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptkarthikaparthasarath
 
energy hub IREC.pptx
energy hub IREC.pptxenergy hub IREC.pptx
energy hub IREC.pptxAlaa Eladl
 
studying-desorption-krypton
studying-desorption-kryptonstudying-desorption-krypton
studying-desorption-kryptonAaron Stromberg
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithmMegha Sharma
 
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)Anmol Dwivedi
 
AI3391 Session 11 Hill climbing algorithm.pptx
AI3391 Session 11 Hill climbing algorithm.pptxAI3391 Session 11 Hill climbing algorithm.pptx
AI3391 Session 11 Hill climbing algorithm.pptxAsst.prof M.Gokilavani
 
Simulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation TechniqueSimulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation TechniqueAUSTIN MOSES
 

Similar to Simulated annealing presentation (20)

SimulatedAnnealing.ppt
SimulatedAnnealing.pptSimulatedAnnealing.ppt
SimulatedAnnealing.ppt
 
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
 
Energy minimization
Energy minimizationEnergy minimization
Energy minimization
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search Techniques
 
Numerical analysis genetic algorithms
Numerical analysis  genetic algorithmsNumerical analysis  genetic algorithms
Numerical analysis genetic algorithms
 
Optimization technique
Optimization techniqueOptimization technique
Optimization technique
 
UNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).pptUNIT-5 Optimization (Part-1).ppt
UNIT-5 Optimization (Part-1).ppt
 
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
 
Heuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.ppt
 
energy hub IREC.pptx
energy hub IREC.pptxenergy hub IREC.pptx
energy hub IREC.pptx
 
studying-desorption-krypton
studying-desorption-kryptonstudying-desorption-krypton
studying-desorption-krypton
 
Lec 6 bsc csit
Lec 6 bsc csitLec 6 bsc csit
Lec 6 bsc csit
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithm
 
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)
 
AI3391 Session 11 Hill climbing algorithm.pptx
AI3391 Session 11 Hill climbing algorithm.pptxAI3391 Session 11 Hill climbing algorithm.pptx
AI3391 Session 11 Hill climbing algorithm.pptx
 
Simulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation TechniqueSimulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation Technique
 
Matlab
MatlabMatlab
Matlab
 
Lect1
Lect1Lect1
Lect1
 
AI_ppt.pptx
AI_ppt.pptxAI_ppt.pptx
AI_ppt.pptx
 

Recently uploaded

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...Call Girls in Nagpur High Profile
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
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
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
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...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
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, ...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

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.