Beruflich Dokumente
Kultur Dokumente
GENETIC ALGORITHM
History of GAs:
Evolutionary computing evolved in the 1960s.
GAs were created by John Holland in the mid-1970s.
Reproduction
information:
Mitosis,
Meiosis.
of
genetical
variations and
What is GA?
Birth of GA
2.5
1.5
0.5
100
200
300
400
500
600
700
800
900
1000
Genetic Algorithm
Chromosome
Gene
Allele
Locus
Genotype
Phenotype
String
Feature or character
Feature value
String position
Structure
Parameter set, a decoded structure
the
Individuals allowed to
reproduce (selection),
crossover, mutate.
Flowchart of GA
1
0
0
1
Either sequence of
on/off or the
number 9
Generalization of 1 point.
X1 =
0110001010
X2 =
1100000111
Uniformly generated = 1 0 0 0 0 0 1 0 0 0
As a result, the new population becomes,
X1 =
1110000010
X2 =
0100001111
1/6 = 17%
A
3/6 = 50%
2/6 = 33%
fitness(A) = 3
fitness(B) = 1
fitness(C) = 2
Simple GA
GA
approach:
Representation: binary code, e.g. 01101 13
Population size: 4
1-point xover, bitwise mutation
Roulette wheel selection
Random initialisation
Example : Selection
4
31%
5% 3
1
14%
49%
Example : Crossover
Example : Mutation
Hamming Cliffs
Hamming distance = number of bit-wise differences
the Hamming distance of 1000 and 0111 is 4
the Hamming distance of 0000 and 1000 is 1
In a), the distance between phenotypes is 1 (1000=8, 0111=7) but the Hamming
distance is 4
In b), the distance between phenotypes is 8 (0000=0, 1000=8) but the Hamming
distance is 1.
So, a one-bit mutation can make a large (or a small) jump; a multi-bit mutation can
make a small (or large) jump. This is known as the hamming cliff problem.
GA works with the coding of solution set and not with the solution
itself.
Binary Encoding
Value Encoding
Crossover
Selection in detail
Issue with RW
The RW will have a problem when the fitness
values differ very much .If the best
chromosome fitness is 90%,Its circumference
occupies 90% of the RW,and then other
chromosomes have too few chances to be
selected
RANK SELECTION
Tournament Selection
In tournament selection, number of
chromosomes, say t, is randomly selected
from the population. Here, t is tournament
size that refers to number of randomly
selected individuals.
Tournament selection selects the best
individual from this group (tournament) as
parent.
Boltzmann Selection
References