λ Lounge
Evolutionary Algorithms
Christopher Mark Gore http://www.cgore.com cgore@cgore.com @cgore Thursday, March 1, AD 2012
1
Lounge Evolutionary Algorithms Christopher Mark Gore - - PowerPoint PPT Presentation
Lounge Evolutionary Algorithms Christopher Mark Gore http://www.cgore.com cgore@cgore.com @cgore Thursday, March 1, AD 2012 1 Evolutionary Algorithms Are Cool! 2 Why Use and Evolutionary Algorithm? The evaluation is very
Evolutionary Algorithms
Christopher Mark Gore http://www.cgore.com cgore@cgore.com @cgore Thursday, March 1, AD 2012
1
Evolutionary Algorithms Are Cool!
2
Why Use and Evolutionary Algorithm?
3
Where Are Evolutionary Algorithms Used?
4
The Evolutionary Algorithm
(a) Parent Selection: choose who to breed. (b) Recombination: cross the parents. (c) Mutation: applied to the offspring. (d) Fitness Evaluation: usually just the new offspring. (e) Survivor Selection: kill off the weak.
5
Population Initialization
Think Adam and Eve. Pro: you can start off the population somewhere useful. Con: you have to know where “somewhere useful” is.
This is usually easy and usually doesn’t cost too many generations.
6
Fitness Evaluation
We need to determine the fitness of our solutions.
7
Parent Selection
8
Recombination
a b c d e ⊕ α β γ δ ǫ → a b c δ ǫ
9
Mutation
a b c d e → a · 1.02 b c · 0.975 d e
10
Survivor Selection
“cull the herd.”
some population member may be useful for breeding later.
11
The Rastrigin Function
f(x) = An +
n
i − A cos (2πxi)
Let’s Look at Some Code!
This is intentionally simple code.
talk, not anything cool about Common Lisp.
So in short, no, this isn’t the best way to do things in the real world.
13
14