Genetic Algorithms: By: Prof. Mahesh Motwani
Genetic Algorithms: By: Prof. Mahesh Motwani
1. Initialization
• Initially many individual solutions are
generated to form an initial
population. This population is generated
randomly from the entire search space.
• The population size depends on the nature of
the problem.
Description of Basic Genetic Algorithm
2. Selection
• During next generations, a section of the
existing population is selected to reproduce a
new generation.
• This selection of individual solutions is based
on a method, where fitter solutions (as
measured by a fitness function) are more
likely to be selected.
Description of Basic Genetic Algorithm
3. Reproduction
• From those selected in the Selection stage,
Generate a second generation population of
solutions using Genetic operators (crossover
and/or mutation)
• For each new solution to be produced, a pair
of "parent" solutions is selected for mating
• The process continues until a new population
of solutions of appropriate size is generated.
Description of Basic Genetic Algorithm
4. Termination
The Generational process is repeated until termination
condition has been reached.
Common GA terminating conditions are:
1. When fixed number of generations are reached
2. When time/cost limits placed on the GA run are reached
3. A optimal solution is obtained that satisfies the
optimization criteria
4. When successive GA iterations no longer produce better
results
Genetic Operators: Crossover
• Given two candidates, produce one that has
elements of each.
• The point at which the chromosome is broken
depends on the randomly selected crossover
point.
• Choose a random point on the two parents
• Split parents at this crossover point
• Create children by exchanging tail
Single-Point (One-Point) Crossover
20
Convergence of Genetic algorithms
28
References
• http://www.cas.mcmaster.ca/~cs777/presenta
tions/3_GO_Olesya_Genetic_Algorithms.pdf
• https://www.iitg.ac.in/rkbc/CE602/CE602/Gen
etic%20Algorithms.pdf
• http://www.cs.cmu.edu/~02317/slides/lec_8.
pdf
• https://www.tutorialspoint.com/genetic_algor
ithms/genetic_algorithms_quick_guide.htm
• https://cs.uwlax.edu/~dmathias/cs419/slides/