Genetic Algorithms
Genetic Algorithms
Genetic Algorithms
Presentation By:
Divya Rani R,
Fazeelath Naziya
Presentation Outline 1 3
1. Introduction
2. History
3. Search Techniques
4. Basic concepts
5. Biological Background
6. Search Space
7. Fitness Function
8. Simple Genetic Algorithm
9. Encoding
GA Operators
Reproduction
Crossover
Mutation
Parameters of GA
Example
Benefits
Applications
Conclusion
Bibliography
Introduction
Introduction 13
Computerized search and optimization algorithms based on
Darwins Principle of Natural Selection
Part of Evolutionary Algorithms
Basic concept - to simulate processes in natural system
necessary for evolution
Structural Engineering Problems, Biology, Computer
Science, Image processing and Pattern Recognition,
physical science, social sciences and Neural Networks
Provide efficient, effective techniques for optimization
History 13
Evolutionary Computing 1960 by Rechenberg
Developed by John Holland, University of Michigan -
1970
Got popular in the late 1980s
Based on ideas from Darwinian Evolution theory
Survival of the fittest
1986 Optimization of a Ten Member Plane
13
Search Techniques
S e a r c h te c h n iq u e s
C a lc u lu s -b a s e d te c h n iq u e s G u id e d r a n d o m s e a r c h te c h n iq u e s E n u m e ra tiv e te c h n iq u e s
P a r a lle l S e q u e n tia l
C e n tr a liz e d D is tr ib u te d S te a d y -s ta te G e n e r a tio n a l
13
Basic Concepts
GA converts design space into genetic space
Works with a coding variables
Traditional optimization techniques are deterministic in
nature, but GA uses randomized operators
Three important aspects:
1. Definition of objective function
2. Definition and implementation of genetic representation
3. Definition and implementation of genetic operators
Biological Background
Biological Background
13
Each cell of a living organisms contains chromosomes - strings
of DNA
Each chromosome contains a set of genes - blocks of DNA
A collection of genes genotype
A collection of aspects (like eye colour) phenotype
Reproduction involves recombination of genes from parents
The fitness of an organism is how much it can reproduce
before it dies
Genetic operators
Search Space 13
The space for all possible feasible solutions
Each feasible solution can be "marked" by its value of the
fitness of the problem
GA is started with a set of solutions called populations
Used to form a new population
More suitable, more chances to select
This is repeated until best population is obtained
13
Fitness Function
Particular solution may be ranked against all
Measures the quality of the represented solution
It is always problem dependent
The fitness of a solution is measured, how best it
gives the result
For instance, Knapsack problem
Fitness Function = Total value of the things in the
knapsack
13
Simple Genetic Algorithm
Step 1: Encoding of the problem in a binary string
Chromosome A 101101100011
Chromosome B 010011001100
Chromosome
1.2324 5.3243 0.4556 2.3293 2.4545
A
Chromosome
ABDJEIFJDHDIERJFDLDFLFEGT
B
Ex: Finding weights for neural network
Chromosome
(back), (back), (right), (forward), (left)
C
The problem: To find the weights of synapses
connecting input to hidden layer and hidden layer to
output layer
Encoding: Each value chromosome represent the
corresponding weights
Contd..
Tree Encoding Every chromosome is a tree 1of 3
some
objects, such as functions or commands in a programming
language
Used for evolving programs or expressions in Programming
Languages
Chromosome1
Chromosome 2
Chromosome 3
Chromosome 4
Contd.. 13
Rank Selection:
Main idea: First ranks the population and then every
chromosome receives fitness from this ranking
The worst will have fitness 1, second worst 2 etc. and the
best will have fitness N
1.Single Point
Single Crossover:
Point Crossover:
AAcross-site
cross-site isis selected
selectedrandomly
randomly along
along thethe length
length of the
of the mated
mated strings
strings
Bits next to the cross-site are exchanged
IfBits
goodnext to theare
strings cross-site are exchanged
not created by crossover, they will not
survive
If goodbeyond
strings next
are generation
not created by crossover, they will not
survive beyond next
10111111
generation
Parent1 10111001
Offspring1
Parent1 1100 11 11 11 0 0 1
0 1 0 1 0 010011 1 1 Parent2
111 Offspring1
Offspring2 0 1 0
Parent 2 0011010010
Offspring 0011001010
1
Offspring 1010010110
2
Mutation 13
Disadvantage:
GA requires more computational time
It is slower than some other methods
Applications 13
Automotive design
Robotics
Robotics involves human designers and engineers trying out all sorts of
things in order to create useful machines that can do work for humans
GAs are being developed that it will allow for dynamic and
anticipatory routing of circuits for telecommunications networks
These could take notice of your system's instability and anticipate
your re-routing needs.
optimize placement and routing of cell towers for best coverage and
ease of switching
13
Traveling Salesman Problem or TSP can be used to plan the most efficient
routes and scheduling for travel planners, traffic routers and even
shipping companies
The shortest routes for traveling and the timing to avoid traffic tie-ups
and rush hours
T han k Y o u