Professional Documents
Culture Documents
Objectives
To provide a background and understanding of basic genetic
algorithms and some of their applications.
1859
1975
Genetic Algorithms
Biological GA Terms
Chromosome String
Gene Feature, character
Genomes Guesses, solutions, collection of genes
Initial population
Evaluations on the population
Breeding (iteratively)
Choose suitable parents
Produce two offspring
Mutation
Reproduce
Population
Crossover
Population
Final
Mutate Population
Population
n < 20
n=n+1
n = 20
Genetic Algorithms
Reproduction
A percentage of the
Crossover
population is selected for
1 1 breeding and assigned
random mates.
2 2 A random crossover
point is selected and a
pair of new solutions
One Point Crossover in
are produced
Genetic Algorithms
© Graham Kendall
gxk@cs.nott.ac.uk Adapted from Dr Graham Kendall’s G5BAIM lecture example
http://cs.nott.ac.uk/~gxk
Genetic Algorithms
Mutation
In a small percentage of
the population random
changes are made.
Genetic Algorithm Performance
P3 1 0 1 1 1 P4 0 0 1 0 0
P2 0 1 1 1 1 P2 0 1 1 1 1
C1 1 1 1 1 1 C3 0 0 1 1 1
C2 0 0 1 1 1 C4 0 1 1 0 0
Genetic Algorithm Example I
New generation
Maximise f(x) = x3 - 60 * x2 + 900 * x +100 (0 <= x <= 31)
Two generations
Maximise f(x) = x3 - 60 * x2 + 900 * x +100 (0 <= x <= 31)
Mutation
Genetic Algorithm Example II
Initial generation
P1 5 8 1 … … 84 32 27 54 67 6.5
P2 78 81 27 … … 9 11 7 44 24 7.8
…
P30 8 1 7 … … 9 16 36 24 19 6.0
Genetic Algorithm Example II
Crossover
C1 8 1 7 … … 9 11 13
7 44 24 5.9
C2 78 81 27 … … 9 16 36 24 19 6.2
Genetic Algorithm Example II
Next generation
P1 8 1 7 … … 9 11 7 44 24 5.9
P2 78 81 27 … … 9 16 36 24 19 6.2
…
P2 7 8 2 … … 5 10 76 4 79 6.0
Genetic Algorithm Example II
+
Personnel Scheduling
Genetic Algorithm
-Mutation
-Local optimiser
Testing Scheme
Population Size 50
Crossover Probability 0.7
Mutation Probability 0.001
Local Optimiser ON
Future Development
Improving Efficiency
• Parameter tuning
• Crossover operators
• Local optimiser
Conclusions
GA approach is feasible and practical
Heuristic
• Can produce better results
• Not guaranteed
Flexible
• Fitness (evaluation) function
• Independent of GA engine
Conclusions
Predictions have been made that advances in
mathematics, fuzzy logic, chaos and fractals will
promote and enhance the work currently being
undertaken by GA's.
The most fit of this new generation are parents for the
next, and so on. This eradicates bad solutions and
eliminates bad family lines, bad parents don't have
opportunity to produce bad children.