Beruflich Dokumente
Kultur Dokumente
(GAs)
By Mutaz Flmban
Outline
History of Genetic Algorithm
What is the Genetic Algorithm
Biological Background
Basic Genetic Algorithm
Genetic Algorithm Operators
Benefits of Genetic Algorithm
Some Genetic Algorithm Applications Types
History of GAs
As early as 1962, John Holland's work on
adaptive systems laid the foundation for later
developments.
HOW IT WORKS ?
Roulette wheel selection
Conceptually, this can be represented as a
game of roulette - each individual gets a slice
of the wheel, but more fit ones get larger slices
than less fit ones.
Roulette wheel selection
3 01000 64 5.5
Offspring: 0101010010
0011001110
Crossover
Single point crossover
Cross point
Two point crossover (Multi point crossover)
Uniform crossover
A random mask is generated
The mask determines which bits are copied from one parent and
which from the other parent
Bit density in mask determines how much material is taken from
the other parent (takeover parameter)
Mask: 0110011000 (Randomly generated)
Parents: 1010001110 0011010010
A Simple 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 (5 8 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)
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)
Benefits of Genetic Algorithms
Concept is easy to understand
Modular, separate from application
Supports multi-objective optimization
Always an answer; answer gets better with time.
Easy to exploit previous or alternate solutions
Flexible building blocks for hybrid applications.
GA Applications
references
http://en.wikipedia.org/wiki/Genetic_al
gorithm
http://www.obitko.com/tutorials/geneti
c-algorithms/index.php
http://www.talkorigins.org/faqs/genal
g/genalg.html#examples:systems
Questions
Q1) give three methods of selection and explain one of
them?.
A1) a) Roulette-wheel selection.
B) Elitist selection.
C) Rank selection.