simulated anne a ling

16
SIMULATED ANNEALING KOMAL SWAM I

Upload: arun14089

Post on 21-Jul-2016

11 views

Category:

Documents


0 download

DESCRIPTION

presentation slides

TRANSCRIPT

Page 1: Simulated Anne a Ling

SIMULAT

ED ANNEALING

KOMAL S

WAMI

Page 2: Simulated Anne a Ling

MotivationThe algorithmIts applicationsExamplesConclusion

Page 3: Simulated Anne a Ling

MOTIVATIONHeat the solid state metal to a high

temperatureCool it down very slowly according to a

specific schedule.

If the heating temperature is sufficiently high to ensure random state and the cooling process is slow enough to ensure thermal equilibrium, then the atoms will place themselves in a pattern that corresponds to the global energy minimum of a perfect crystal.

Page 4: Simulated Anne a Ling

SIMULATED ANNEALING

Step 1: Initialize – Start with a random initial placement. Initialize a very high “temperature”.

Step 2: Move – Perturb the placement through a defined move.

Step 3: Calculate score – calculate the change in the score due to the move made.

Step 4: Choose – Depending on the change in score, accept or reject the move. The prob of acceptance depending on the current “temperature”.

Step 5: Update and repeat– Update the temperature value by lowering the temperature. Go back to Step 2.

The process is done until “Freezing Point” is reached.

Page 5: Simulated Anne a Ling

COOLING SCHEDULE

Page 6: Simulated Anne a Ling

Convergence of simulated annealing

HILL CLIMBING

HILL CLIMBING

HILL CLIMBINGCO

ST

FUN

CTI

ON

, C

NUMBER OF ITERATIONS

AT INIT_TEMP

AT FINAL_TEMP

Move accepted withprobability= e-(^C/temp)

Unconditional Acceptance

Page 7: Simulated Anne a Ling

ALGORITHM FOR PARTITIONING

Page 8: Simulated Anne a Ling

METROPOLIS

Page 9: Simulated Anne a Ling

Metropolis - 1953:simulation of cooling of material in a heath bath;

❚A solid material is heated past its melting point and then cooled back into a solid state (annealing).

❚The final structure depends on how the cooling is performed

-slow cooling → large crystal (low energy)-fast cooling → imperfections (high energy)■Metropolis’ algorithm simulates the change in

energy of the system when subjected to the cooling process; the system converges to a final “frozen” state of a certain energy.

Page 10: Simulated Anne a Ling

QUALITATIVE ANALYSIS

PROBLEM-SPECIFIC1. What is a solution?2. What are the neighbors of a solution?3. What is the cost of a solution?4. How do we determine an initial solution?GENERIC1. How do we determine an initial temperature?2. How do we determine the cooling ratio r?3. How do we determine the temperature length L?4. How do we know when we are frozen?

Page 11: Simulated Anne a Ling

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?

Page 12: Simulated Anne a Ling

Ball on terrain example – SA vs Greedy Algorithms

Greedy Algorithmgets stuck here!Locally Optimum

Solution.

Simulated Annealing exploresmore. Chooses this move with asmall probability (Hill Climbing)

Upon a large no. of iterations,SA converges to this solution.

Initial positionof the ball

Page 13: Simulated Anne a Ling

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.

Page 14: Simulated Anne a Ling
Page 15: Simulated Anne a Ling
Page 16: Simulated Anne a Ling

THANK YOU!