probabilistic algorithms evolutionary algorithms simulated annealing

23
Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Upload: paul-robinson

Post on 17-Jan-2016

293 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Probabilistic Algorithms

Evolutionary AlgorithmsSimulated Annealing

Page 2: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing
Page 3: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Characteristics

Finds global solution – in the limitBut no guarantee of finding global optimum

Large complex search space

high dimensionalmultiple local optima

Metaheuristics“Metaheuristics, although they also optimize through the neighbourhood approach, differ from heuristics in that they can move through neighbours that are worse solutions than the current solution”

Page 4: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Termination criteria

Allocated time exceeded

Little improvement at iteration

Within threshold of target value

Page 5: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Evolutionary algorithms

Genetic Algorithms – most popular EA

Selection by fitness

ReproductionInheritanceMutationCrossover

Genetic ProgrammingEvolutionary ProgrammingNeuroevolution

etc.

Page 6: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Genetics

Chromosomes, genotype of genome

Candidate solutions - phenotype

Page 7: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Encoding

1. Binary vector

2. Continuous variables – finite representation

Robustness desirableAll changes result in viable individual

Page 8: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Random seed population

Fitness evaluation

selection

parents New generation

Crossover

“zygotes” Mutation

Random crossover

point

Probabilistic

fitness-based

RandomReplaceme

nt

Page 9: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

parents offspring

New populationNew

population

Page 10: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Fitness evaluation & selection

Fitness functionevaluates “goodness” of individual

Select fit and some not-so-fit

Page 11: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Crossover

Page 12: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Masking

Page 13: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Mutation

Page 14: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Mutation

Page 15: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Generations

Keep same size population

Follow promising lines by 1.Mating fit parents2.Crossover

Global search by1.Mutation2.Unfit parent selection

Page 16: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Simulated Annealing

Metalurgy

internal energy, heat

Raise temperature to unstick atoms

To find configurations with lower internal energy

Page 17: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing
Page 18: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing
Page 19: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

State Space

State space {s}

Generate neighborNeighbor function

s’=neighbor(s)

Probabilistically move to s’

Page 20: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Evaluate state – probablistic move

P(e’,e,T)

Compute energy of neighbore’=E(s’)

Energy function (fitness function)e = E(s)

Probability of going from state with energy e to state with energy e’While temperature is T

Page 21: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Acceptance Probability Function P()

Acceptance function: P(e,e’,T)

P <> 0 when e’>e => not stuck at local minimum

As T->0, P->0 for e’>e => downhill

Originally P(e,e’,T)=1 whenever e’>e

Usually P decreases as e’-e increases

T->0 by time or compute expense

P(e’,e,Tlarge) > P(e’,e,Tsmall)

Page 22: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

State Parameters

State space {s}

Energy function E(s)

Neighborhood function neighbor(s)

Acceptance probability P(e’,e,T) e.g. exp((e-e’)/T)

Annealing schedule T(t)Initial temperature Tinit

Choose similar solution, not radical one ?

Page 23: Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing

Example illustrating the effect of cooling schedule on the performance of simulated annealing. The problem is to rearrange

the pixels of an image so as to minimize a certain potential energy function, which causes similar colours to attract at short range and

repel at a slightly larger distance. The elementary moves swap two adjacent pixels. These images were obtained with a fast cooling schedule (left) and a slow cooling schedule (right),

producing results similar to amorphous and crystalline solids, respectively.