You are on page 1of 21

Introduction Examples Analysis

Simulated Annealing
Rohit Man Amatya
Master by Research Kathmandu University Dhulikhel, Kavrepalanchok

2012, July 20

Rohit Man Amatya

Simulated Annealing

1 of 21

Introduction Examples Analysis

Introduction Annealing Simulated Annealing Examples Travelling Salesman Problem Ball on Terrian Analysis Requirement Update Function

Rohit Man Amatya

Simulated Annealing

2 of 21

Introduction Examples Analysis

Annealing Simulated Annealing

Problem

We need a strategy to nd other minima This means, we must sometimes select new point How?

Rohit Man Amatya

Simulated Annealing

3 of 21

Introduction Examples Analysis

Annealing Simulated Annealing

Methods

Brute Fore Greedy Dynamic Programming Backtracking, Branch and Bound

Rohit Man Amatya

Simulated Annealing

4 of 21

Introduction Examples Analysis

Annealing Simulated Annealing

Metal Annealing

Heating to high temperature Gradual cooling Done for changing the properties of solid-materials.

Rohit Man Amatya

Simulated Annealing

10 of 21

Introduction Examples Analysis

Annealing Simulated Annealing

What happens

Change the property of the metal One manner is which crystal are formed low energy, organized crystal lattice formed. Placing themselves in a pattern which is global energy minimum of a perfect crystal.

Rohit Man Amatya

Simulated Annealing

11 of 21

Introduction Examples Analysis

Annealing Simulated Annealing

Simulated Annealing

Incorporate a temperature parameters into the minimization procedure At high temperatures, explore parameter space At low temperature, restrict exploration

Rohit Man Amatya

Simulated Annealing

12 of 21

Introduction Examples Analysis

Annealing Simulated Annealing

Strategy

Consider decreasing series of temperatures For each temperature, iterate these steps:
Propose an update and evaluate function Accept update that improve solution Accept some updates that dont improve solution
Acceptance probability depands on temperature parameter

If cooling is sufciently slow, the global minimum will be reached

Rohit Man Amatya

Simulated Annealing

13 of 21

Introduction Examples Analysis

Travelling Salesman Problem Ball on Terrian

Traveling Salesman Problem

Salesman must visit every city in a set Given distance between pairs of cities Find the shortest route through the set

Rohit Man Amatya

Simulated Annealing

14 of 21

Introduction Examples Analysis

Travelling Salesman Problem Ball on Terrian

Ball on Terrain (Fog of War)

Intially placed at a random can only move one step to settle at the lowest point on the terrain

Rohit Man Amatya

Simulated Annealing

15 of 21

Introduction Examples Analysis

Requirement Update Function

Irreducibility

All states must communicate


Starting point should not affect results

Rohit Man Amatya

Simulated Annealing

16 of 21

Introduction Examples Analysis

Requirement Update Function

Accepting an Update

Change state S0 to S1 with probability

min 1, e T

Given sufcient time, leads to equilibrium state

Rohit Man Amatya

Simulated Annealing

17 of 21

Introduction Examples Analysis

Requirement Update Function

Equilibrium Distribution

Probability of state with energy k is

P(S = k ) e T
At low T , probability is concentrated in low energy states

Rohit Man Amatya

Simulated Annealing

18 of 21

Introduction Examples Analysis

Requirement Update Function

Update Scheme

A good scheme should be able to:


Connect any two possible paths Propose improvements to good solution

Some possible update schemes:


Swap a pair of cites in current path Invert a segemnt in current path

Rohit Man Amatya

Simulated Annealing

19 of 21

Introduction Examples Analysis

Requirement Update Function

Applications

Circuit partitioning and placement. Strategy scheduling with complex product structure. Event-based learning situations.

Rohit Man Amatya

Simulated Annealing

20 of 21

Introduction Examples Analysis

Requirement Update Function

Issues

Selecting the parameters Hard fast rule doesnt exist. Large no of iteration need to gurantee convergence.

Rohit Man Amatya

Simulated Annealing

21 of 21

You might also like