Professional Documents
Culture Documents
Made By
-Garima Singhal
Introduction
• Handwriting Recognition
• Image Processing and Data Compression
• Automotive Systems and Manufacturing
• Decision –Support Systems
• Neurofuzzy Systems
• Fuzzy Logic Control
Evolutionary Computation
Genetic Algorithm
Genetic programming
S e a rc h te c h n iq u e s
C al c u l u s -b as ed tec h n i q u e s G u id e d ra n d o m s e a rc h te c h n iq u e s E n u m e ra t i v e tec h n i q u es
P a ra lle l S e q u e n tia l
f(x) = 15 x x2
The fitness function and chromosome
locations
50 50
40 40
30 30
20 20
10 10
0 0
0 5 10 15 0 5 10 15
x x
(a) Chromosome initial locations. (b ) Chromosome final locations.
• The last column in Table shows the ratio of the individual
chromosome’s fitness to the population’s total fitness. This ratio
determines the chromosome’s chance of being selected for mating. The
chromosome’s average fitness improves from one generation to the
next.
Roulette wheel selection
100 0
X1: 16.5%
X2: 20.2%
75.2 X3: 6.4%
X4: 6.4%
X5: 25.3%
36.7 X6: 24.8%
49.5 43.1
Crossover operator
X1i 0 11 00 00
1 0 11 11 11 X5i
X2i 0 1 0 0 0 1 1 1 X5i
Mutation operator
X2'i 0 1 0 1
0
X1'i 0
1 1 1 1 1 1 X1"i
X5'i 0 1 0
1 0
1
X2i 0 1 0 0 1 0 X2"i
X5i 0 1 1 1
C rossover
Generation i
X1i 1 1 0 0 f = 36 X6i 1 0 00 1 0 1 00 00 X2i
X2i 0 1 0 0 f = 44
X3i 0 0 0 1 f = 14
X4i 1 1 1 0 f = 14 X1i 0 11 00 00
1 0 11 11 11 X5i
X5i 0 1 1 1 f = 56
X6i 1 0 0 1 f = 54
X2i 0 1 0 0 0 1 1 1 X5i
Generation (i + 1)
X1i+1 1 0 0 0 f = 56 Mutation
X2i+1 0 1 0 1 f = 50 X6'i 1 0 0 0
X3i+1 1 0 1 1 f = 44
X2'i 0 1 0 1
0
X4i+1 0 1 0 0 f = 44
X1'i 0
1 1 1 1 1 1 X1"i
X5i+1 0 1 1 0 f = 54
X6i+1 0 1 1 1 f = 56 X5'i 0 1 0
1 0
1
X2i 0 1 0 0 1 0 X2"i
X5i 0 1 1 1
Example Checkboard
• We are given an n by n checkboard in which every field can
have a different colour from a set of four colours.
• Goal is to achieve a checkboard in a way that there are no
neighbours with the same colour (not diagonal).
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
• Chromosomes represent the way the checkboard is coloured.
• Chromosomes are not represented by bitstrings but by bitmatrices
• The bits in the bitmatrix can have one of the four values 0, 1, 2 or
3, depending on the colour
• Crossing-over involves matrix manipulation instead of point wise
operating. Crossing-over can be combining the parential matrices in
a horizontal, vertical, triangular or square way
• Mutation remains bitwise changing bits in either one of the other
numbers
• Fitness curve for the checkboard example
180
175
170
165
160
Fitness
155
150
145
140
Best Fitness
Mean Fitness
135
130
0 100 200 300 400 500 600
Generations
• This problem can be seen as a graph with n nodes and (n-1) edges,
so the fitness f(x) is easily defined as: f(x) = 2 · (n-1) ·n
Fitnesscurves for different cross-over
rules
170 170
Fitness
160 160
150 150
140 140
130 130
0 100 200 300 400 500 0 200 400 600 800
170 170
Fitness
160 160
150 150
140 140
130 130
0 200 400 600 800 0 500 1000 1500
Generations Generations
The GA Cycle of Reproduction
Offspring Decoded Strings
Population
New
Generation
Parents
Selection(Mating Pool)
Manipulation Reproduction
Issues for Genetic Algorithm
practitioners
• Easy to understand
• Supports multi-objective optimisation
• Good for noisy environment
• We always get answer and answer gets better with time
• Inherently parallel and easily distributed
• Easy to exploit for precious or alternate solutions
• Flexible in forming building blocks for hybrid applications
• Has substantial history and range of use
Genetic Algorithm Applications
Domains Application Types