Evolutionary Algorithms
Keith L. Downing
The Norwegian University of Science and Technology (NTNU) Trondheim, Norway keithd@idi.ntnu.no
February 4, 2014
Keith L. Downing Evolutionary Algorithms
Evolutionary Algorithms Keith L. Downing The Norwegian University - - PowerPoint PPT Presentation
Evolutionary Algorithms Keith L. Downing The Norwegian University of Science and Technology (NTNU) Trondheim, Norway keithd@idi.ntnu.no February 4, 2014 Keith L. Downing Evolutionary Algorithms Malthus and Darwin Thomas Malthus (1789)
Keith L. Downing Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms
1
2
3
Keith L. Downing Evolutionary Algorithms
Gtypes Immature Ptypes Adult Ptypes Mating Ptypes Gametes Selection Selection Variation Inheritance + Selection Development Maturation Mating Competition Mitosis & Meiosis Aging & Death Reproduction: Gamete Pairing Keith L. Downing Evolutionary Algorithms
!"#$%& '()*+,
.+/*"
!"#$%& 301)0")42 52(%1)"026% 7%8%*4$9%2" :)"2%&& ;%&")2< .+/*", =%*%6")42
=%*%6")42 !"#$% '4$#)2< >%$14+/6")42? >%649@)20")42,A B/"0")42 .<%CD0&%+ :)*"%1)2< =%*%6")42 Keith L. Downing Evolutionary Algorithms
Initialize child genotype population Development: Generate Phenotypes from Genotypes Test Fitness of Phenotypes G G G G G P G P G P G P G P G P 3 G P 7 G P 5 2 Adult Selection G P 7 G P 5 G P 8 G P 6 Parent Selection Young Adults G P 8 G P 8 G P 5 G P 6 G G G G Reproduction Begin Next Generation Retain Some Adults
Keith L. Downing Evolutionary Algorithms
1
2
3
4
5
6
7
Keith L. Downing Evolutionary Algorithms
1
2
3
4
5
Keith L. Downing Evolutionary Algorithms
2 4 6 8 10 12 14 1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 0000 1011 1010 0111 Start sending mesage 1 at time 0 Start sending mesage 3 at time 10 Genotype Phenotype 0011 0000 0011 Start sending mesage 7 at time 3 Keith L. Downing Evolutionary Algorithms
1 1 1 1 1 1 1 1 1 1 1 1 1 1
Parents Children 1-Point Crossover
1 1 1 1 1 1 1 1
2-Point Crossover
1 1 1 1 1 1 1 1
Parents Children 5 4 9 3 1 4 13 3 7 4 12 3 4 2 15 5
Keith L. Downing Evolutionary Algorithms
Message 3 Message 4 Message 6 Message 1 Message 7 K-Step Window Message 2 Message 5
Keith L. Downing Evolutionary Algorithms
Adult Selection: Full Generational Replacement Parent Selection: Fitness Proportionate Roulette Wheel Fitness Individual Die Children Adults Keith L. Downing Evolutionary Algorithms
5 10 15 20 25 30 35 40 45 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Generation Fitness M ax Avg M in
Keith L. Downing Evolutionary Algorithms
2 4 6 8 10 12 14 16 18 1 2 3 4 5 6 7 8 9 10 11
Keith L. Downing Evolutionary Algorithms
1
2
3
4
1
2
Keith L. Downing Evolutionary Algorithms
*
*
3 X * + 3 + * X
2 X X + + + *
* X X X X 3 3
2 *
(lambda (X) (+ (* (* (* X X) X) (+ 3 3)) (+ (* -2 X) (- -3 2)))) Keith L. Downing Evolutionary Algorithms
X X + + 3 1 X * + 2 X
X
(lambda (X) (- (* (+ X 1) X) (+ X 3))) (lambda (X) (* (+ X X) (- 2 3)))
+ 3 * + X X 2
* X + 1 X (lambda (X) (- (- 2 3) (+ X 3))) (lambda (X) (* (+ X X) (* (+ X 1) X))) Keith L. Downing Evolutionary Algorithms
+ + + *
* X X X X 3 3
2 *
Complete Subtree
Keith L. Downing Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms
AS F
Keith L. Downing Evolutionary Algorithms
Fitness Phenotype Fitness Phenotype Fitness Phenotype Early in an EA Run Late in an EA Run Fitness Phenotype
Keith L. Downing Evolutionary Algorithms
a a b b
Adults
b
1 3 2 4
Fitness Scaling
Children Old Adults 5 2 1 3 4 5 Parents
Reproduction
Global Competition Local Tournaments 1 3 4 c 3 4 5 d
Keith L. Downing Evolutionary Algorithms
Adult Pool Child Pool 3 18 11 12 Adult Pool Child Pool 7 10 12 20 Death 7 18 11 12 6 3 10 13 Adult Pool Child Pool 18 11 6 3 10 13 10 12 20 7 12 7 7 10 12 20 Death Death Full Generational Replacement Over-Production Replacement Generational Mixing
Keith L. Downing Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms
15% 16% 13% 18% 11% 2% 4% 9% 5% 7% 14% 16% 12% 17% 11% 3% 9% 4% 6% 8%
Keith L. Downing Evolutionary Algorithms
18% 35% 6% 6% 6% 6% 6% 6% 6% 6% 14% 8% 8% 8% 23% 8% 8% 8% 8% 8%
Keith L. Downing Evolutionary Algorithms
10% 10% 10% 11% 10% 12% 10% 10% 10% 10% 15% 8% 8% 8% 23% 8% 8% 8% 8% 8%
Keith L. Downing Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms
12% 11% 14% 10% 15% 9% 6% 8% 7% 7%
T = 10
17% 14% 12% 21% 9% 3% 4% 8% 5% 6%
T = 5
40% 24% 15% < 1% < 1% 1% 2% 3% 5% 9%
T = 2
63% < 1% < 1% < 1% < 1% < 1% 1% 3% 23% 9%
T = 1
Keith L. Downing Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms
15% 16% 13% 18% 11% 2% 4% 9% 5% 7% 12% 11% 14% 10% 15% 9% 6% 8% 7% 7%
T = 10
9% 11% 8% 12% 7% 6% 13% 5% 14% 15%
Keith L. Downing Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms
Search Algorithms Whole Solutions Partial Solutions Serial (Traditional) Parallel (Evolutionary) Exhausive Local Linear Programming Whole Solutions Greedy Algs Divide & Conquer Branch & Bound Dynamic Prog'ing Best First (A*) Breadth-1st Hill- Climbing Simplex GA, ES, EP, GP How to Solve It: Modern Heuristics (Michalewicz & Fogel 2000) * Traditional methods can be parallel, but it's usually an independent parallelism Keith L. Downing Evolutionary Algorithms
1
2
3
4
Keith L. Downing Evolutionary Algorithms
General Relationships
Exploration Exploitation Genetic Operations Selection Strategies
More Specific Relationships
Exploration Exploitation Mutation Rate Crossover Rate Selection Pressure Degree of Elitism Tournament Size Adult Turnover Genetic Variation Direct Inverse Link Types
Keith L. Downing Evolutionary Algorithms
Generator Tester Hs Hs Generator Tester Hs Hs Standard AI Problem Solvers Evolutionary Algorithms
Keith L. Downing Evolutionary Algorithms