To Genetic Algorithms
To Genetic Algorithms
TO GENETIC
ALGORITHMS
Action Plan
■ What is Genetic Algorithms?
■ Introduction to Genetic Algorithm
■ Classes of Search Techniques
■ Components of a GA
■ Components of a GA
■ Simple Genetic Algorithm
■ GA Cycle of Reproduction
■ Population
■ Reproduction
■ Chromosome Modification: Mutation, Crossover, Evaluation, Deletion
■ Example
■ GA Technology
■ Issues for GA Practitioners
■ Benefits of Genetic Algorithms
■ GA Application Types
■ Quiz
What is Genetic
Algorithms?
“Genetic Algorithms are
good at taking large,
potentially huge search
spaces and navigating
them, looking for
optimal combinations of
things, solutions you
might not otherwise find
in a lifetime.”
- Salvatore Mangano
Computer Design, May 1995
Introduction to Genetic Algorithm
Search techniques
Direct m ethods Indirect m ethods Evolutionary algorithm s Sim ulated annealing Dynam ic program m ing
Parallel Sequential
discard
Population
population
parents
population
P1 (0 1 1 0 1 0 0 0) (0 1 0 0 1 0 0 0) C1
P2 (1 1 0 1 1 0 1 0) (1 1 1 1 1 0 1 0) C2
discard
■ Generational GA:
entire populations replaced with each iteration
■ Steady-state GA:
a few members replaced each generation
An Abstract Example
CityList1 (3 5 7 2 1 6 4 8)
CityList2 (2 5 7 6 8 1 3 4)
Crossover
Crossover combines inversion and
recombination:
* *
Parent1 (3 5 7 2 1 6 4 8)
Parent2 (2 5 7 6 8 1 3 4)
Child (2 5 7 2 1 6 3 4)
* *
Before: (5 8 7 2 1 6 3 4)
After: (5 8 6 2 1 7 3 4)
TSP Example: 30 Cities
120
100
80
y 60
40
20
0
0 10 20 30 40 50 60 70 80 90 100
x
Solution i (Distance = 941)
TSP30 (Performance = 941)
120
100
80
y 60
40
20
0
0 10 20 30 40 50 60 70 80 90 100
x
Solution j(Distance = 800)
44
62 TSP30 (Performance = 800)
69
67 120
78
64 100
62
54
80
42
50
40 y 60
40
38 40
21
35
67 20
60
60 0
40 0 10 20 30 40 50 60 70 80 90 100
42 x
50
99
Solution k(Distance = 652)
TSP30 (Performance = 652)
120
100
80
y 60
40
20
0
0 10 20 30 40 50 60 70 80 90 100
x
Best Solution (Distance =
420)
42
38 TSP30 Solution (Performance = 420)
35
120
26
21
35 100
32
7
80
38
46
44 y 60
58
60 40
69
76
20
78
71
69 0
67 0 10 20 30 40 50 60 70 80 90 100
62 x
84
94
Overview of Performance
TSP30 - Overview of Performance
1800
1600
1400
1200
e
c 1000
n
a
t
s
i 800
D
600
400
200
0 Best
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31
Worst
Generations (1000)
Average
Considering the GA Technology
“Almost eight years ago ...
people at Microsoft wrote
a program [that] uses
some genetic things for
finding short code
sequences. Windows 2.0
and 3.2, NT, and almost all
Microsoft applications
products have shipped
with pieces of code created
by that system.”
- Nathan Myhrvold, Microsoft Advanced
Technology Group, Wired, September 1995
Issues for GA Practitioners