Академический Документы
Профессиональный Документы
Культура Документы
Evolutionary Algorithms
Maren Urselmann
Prof. Dr.-Ing. S. Engell
Process Dynamics and Operations Group
TU Dortmund, Germany
Lecture | 14.07.2011
Process Dynamics
and Operations
Lecture | 14.07.2011
Process Dynamics
and Operations
Evolutionary Algorithms
Evolutionary Algorithms (EA) are inspired by the
process of biological evolution
Biology delivered inspiration and terminology
EVOLUTION
PROBLEM SOLVING
Environment
Problem
Individual
Candidate Solution
Fitness
Process Dynamics
and Operations
Darwinian Evolution
All environments have limited resources
Lifeforms have the basic instinct to reproduce
Some kind of selection is inevitable
Natural selection = survival of the fittest
Competition for those resources
Individuals that are better adapted to the environment
(fitter individuals) have increased chances to
survive/reproduce
Over time Natural selection causes a rise in the fitness
of the population
Lecture | 14.07.2011
Process Dynamics
and Operations
Natural Genetics
The information required to build a living organism is
coded in the DNA of that organism
Genotype (DNA inside) determines phenotype
Small changes in the genotype lead to small changes in
the organism (e.g., height, hair colour)
Sexual reproduction:
Recombination = Crossover
- Genes of offspring are build by parts of the maternal and by
parts of the paternal genes
Mutation
- Some of the genetic material changes very slightly
(replication error)
- The child might have genetic material information not
inherited from either parent
Lecture | 14.07.2011
Process Dynamics
and Operations
Lecture | 14.07.2011
Process Dynamics
and Operations
Lecture | 14.07.2011
Process Dynamics
and Operations
Representation
Candidate solutions (individuals) exist in phenotype
space
They are encoded in chromosomes, which exist in
genotype space
Encoding : phenotype genotype (not necessarily one to one)
Decoding : genotype phenotype (must be one to one)
Lecture | 14.07.2011
Process Dynamics
and Operations
10
Process Dynamics
and Operations
Population
Holds (representations of) possible solutions
Usually has a fixed size and is a multiset of genotypes
Selection operators usually take whole population into
account i.e., reproductive probabilities are relative to
current generation
Diversity of a population refers to the number of
different fitnesses / phenotypes / genotypes present
(note not the same thing)
Lecture | 14.07.2011
11
Process Dynamics
and Operations
12
Process Dynamics
and Operations
Variation Operators
Role is to generate new candidate solutions
Usually divided into two types according to their arity
(number of inputs):
Arity 1 : mutation operators
Arity >1 : Recombination operators
Arity = 2 typically called crossover
13
Process Dynamics
and Operations
Recombination
Merges information from parents into offspring
Choice of what information to merge is stochastic
Most offspring may be worse, or the same as the
parents
Hope is that some are better by combining elements of
genotypes that lead to good traits
Lecture | 14.07.2011
14
Process Dynamics
and Operations
Mutation
Acts on one genotype and delivers another
Element of randomness is essential and differentiates it
from other unary heuristic operators
Importance ascribed depends on representation and
dialect
May guarantee connectedness of search space and
hence convergence proofs
Lecture | 14.07.2011
15
Process Dynamics
and Operations
Survivor Selection
a.k.a. replacement
Most EAs use fixed population size so need a way of
going from (parents + offspring) to next generation
Often deterministic
Fitness based : e.g., rank parents+offspring and take best
Age based: make as many offspring as parents and
delete all parents
16
Process Dynamics
and Operations
Lecture | 14.07.2011
17
Process Dynamics
and Operations
Lecture | 14.07.2011
18
Process Dynamics
and Operations
Phenotype:
a board configuration
Genotype:
a permutation of
the numbers 1 - 8
Obvious mapping
1 3 5 2 6 4 7 8
Lecture | 14.07.2011
19
Process Dynamics
and Operations
20
Process Dynamics
and Operations
Parent individual
1 3 5 2 6 4 7 8
1 3 7 2 6 4 5 8
Lecture | 14.07.2011
21
Process Dynamics
and Operations
1 3 5 2 6 4 7 8
8 7 6 5 4 3 2 1
Lecture | 14.07.2011
1 3 5 4 2 8 7 6
8 7 6 2 4 1 3 5
22
Process Dynamics
and Operations
Lecture | 14.07.2011
23
Process Dynamics
and Operations
20
24
Process Dynamics
and Operations
Lecture | 14.07.2011
25
Process Dynamics
and Operations
Typical Behavior of an EA
Phases in optimizing on a 1-dimensional fitness landscape
Early phase:
quasi-random population distribution
Mid-phase:
population arranged around/on hills
Late phase:
population concentrated on high hills
Lecture | 14.07.2011
26
Process Dynamics
and Operations
27
Process Dynamics
and Operations
Evolutionary Algorithms
EAs fall in the category of generate & test algorithms
They are stochastic, population-based algorithms
Variation operators (recombination and mutation) create
the necessary diversity and thereby facilitate novelty
Selection reduces diversity and acts as a force pushing
quality
Lecture | 14.07.2011
28
Process Dynamics
and Operations
29
Process Dynamics
and Operations
Evolution Strategies
Lecture | 14.07.2011
30
Process Dynamics
and Operations
Evolution Strategies
Attributed features:
fast
good optimizer for real-valued optimization
relatively much theory
Special:
self-adaptation of (mutation) parameters
Lecture | 14.07.2011
31
Process Dynamics
and Operations
Introductory Example
Task: minimimize f : Rn R
Algorithm: ES with two members using
Lecture | 14.07.2011
32
Process Dynamics
and Operations
xt+1 = xt;
xt+1 = yt;
(5) t=t+1;
Lecture | 14.07.2011
33
Process Dynamics
and Operations
The one
dimensional case
Illustration of the
normal distribution *N(0,1)
Lecture | 14.07.2011
34
Process Dynamics
and Operations
Self-adaptation
Pecularity of the ES is the self-adaptation
Representation of the individuals is extended by one or
more strategy parameters:
E.g.
x = <x1,,xn, >
Lecture | 14.07.2011
35
Process Dynamics
and Operations
Self-adapted mutation
Idea:
is part of the chromosome x1,,xn,
is also mutated into
Order is important:
first
then x x = x + N(0,1)
Lecture | 14.07.2011
36
Process Dynamics
and Operations
Parent selection:
With uniform random distribution
Each individual has the same probability to be selected
Lecture | 14.07.2011
37
Process Dynamics
and Operations
Recombination
Creates one child
Acts per variable / position by either
Averaging parental values,
Intermediate recombination
Discrete recombination
Lecture | 14.07.2011
38
Process Dynamics
and Operations
Survivor selection
Basis of selection is either:
The set of children only: (,)-selection
The set of parents and children: (+)-selection
The set of parents with an age < generations and
children: (,,)-selection
39
Process Dynamics
and Operations
Lecture | 14.07.2011
40
Process Dynamics
and Operations
Parent individual
41
Process Dynamics
and Operations
and
1
2 n
And i < i =
Lecture | 14.07.2011
42
Process Dynamics
and Operations
Parent individual
43
Process Dynamics
and Operations
Parent individual
44
Process Dynamics
and Operations
Lecture | 14.07.2011
45
Process Dynamics
and Operations
Correlated mutations
The mutation mechanism is then:
i = i exp( N(0,1) + Ni (0,1))
j = j + N (0,1)
x = x + N(0,C)
x stands for the vector x1,,xn
C is the covariance matrix C after mutation of the
values
1
2n
and
and 5
2 n
i < i = and
| j | > j = j - 2 sign(j)
Lecture | 14.07.2011
46
Process Dynamics
and Operations
Parent individual
47
Process Dynamics
and Operations
Real-valued vectors
Recombination
Discrete or intermediary
Mutation
Gaussian perturbation
Parent selection
Uniform random
Survivor selection
Specialty
Lecture | 14.07.2011
48
Process Dynamics
and Operations
Random search
Lecture | 14.07.2011
49
Process Dynamics
and Operations
EA 4
EA 2
EA 3
EA 1
P
Scale of all problems
Lecture | 14.07.2011
50
Process Dynamics
and Operations
Lecture | 14.07.2011
51
Process Dynamics
and Operations