SlideShare a Scribd company logo
1 of 26
GENETIC
ALGORITHM
1
Defination
• A genetic algorithm (or short GA) is a search
technique used in computing to find true or
approximate solutions to optimization and
search problems.
• A genetic algorithm maintains a population of
candidate solutions for the problem at hand,
and makes it evolve by iteratively applying
a set of stochastic operators.
2
GA Quick Overview
• Developed: USA in the 1970’s
• Early names: J. Holland, K. DeJong, D. Goldberg
• Inspired by the biological evolution process
• Uses concepts of “Natural Selection” and “Genetic
Inheritance” (Darwin 1859)
• Typically applied to:
– discrete optimization
• Attributed features:
– not too fast
– good heuristic for combinatorial problems
• Special Features:
– Traditionally emphasizes combining information from good parents
(crossover)
– many variants, e.g., reproduction models, operators
3
Classes of Search Techniques
Search Techniques
Calculus Base
Techniques
Guided Random Search
Techniques
Enumerative
Techniques
BFS
DFS Dynamic
Programming
Tabu Search
Hill Climbing
Simulated
Annealing
Evolutionary
Algorithms
Genetic
Programming
Genetic
Algorithms
Fibonacci Sort
4
Genetic Algorithms Techniques
• GAs are a particular class of evolutionary algorithms. The
techniques common to all GAs are:
 Encoding (Representation)
 Selection
 Crossover (also called recombination)
 Mutation
• GAs are best used when the objective function is:
 Discontinuous
 Highly nonlinear
 Stochastic
 Has unreliable or undefined derivatives
5
Biological Terminology
• Gene: A single encoding of part of the
solution space, i.e. either single bits or
short blocks of adjacent bits that encode
an element of the candidate solution.
• Chromosome: A string of genes that
represents a solution.
• Population: The number of chromosomes
available to test.
0 1 1 0
1
0 1 1 0
0 1 1 0
0 1 1 0
0 1 1 0
0 1 1 0
0 1 1 0 6
Implementation of Genetic Algorithm
Step # 1: Encoding (Representation)
Step # 2: Selection of Fittest Chromosome
Step # 3: Crossover
Step # 4: Mutation
7
1. Encoding
• The first step in the implementation of GA is
encoding i.e. the representation of a problem
solution/ chromosome.
• Some of the different encoding techniques are:
 Binary Encoding
 Permutation Encoding
 Value Encoding
 Tree Encoding
8
Continued…
9
2. Selection
• After encoding and the random generation of an initial
population the next step in GA is the selection of
chromosomes which would take part as parents in
crossover.
• The main problem is how to carryout this selection. As
per Darwin’s evolution theory, the fittest chromosomes
survive through generations and are most likely to take
part in crossover and create offspring.
• Some of the well known techniques of selection are”
 Tournament selection
 Roulette wheel selection
 Steady state selection
 Rank selection
10
3. Crossover
• After the selection of chromosomes for
crossover, the next task is to decide how to
carryout the process of crossover so that genes
from two parents can be recombined and
children are created.
• Crossover can be carried out in a number of
ways. Some of them are shown in next slide.
11
Continued…
12
Continued…
13
4. Mutation
• The main aim of carrying out mutation is to
induce a certain level of diversity into
population so that GA can be prevented from
getting trapped into a local optimum.
• Like crossover the decision of how to perform
mutation, also, depends upon the type of
encoding being used. The different mutation
techniques, for different types of encoding are
shown is next slide.
14
Continued…
15
References
• W. Williams, Genetic Algorithms: A Tutorial,
http://web.umr.edu/~ercal/387/slides/GATutorial.ppt
• A. Eiben, J. Smith, Introduction to Evolutionary Computing, Genetic Algorithms,
http://www.cs.vu.nl/~jabekker/ec0607/slides/Lecture03-Chapter3-
GeneticAlgorithms.ppt
• R. Horst and P.M. Pardalos(eds.), Handbook of Global Optimization, Kluwer,
Dordrecht 1995.
• M. Mitchell, An Introduction To Genetic Algorithms, Cambridge, MA: MIT Press,
1996.
• C. Darwin. On the Origin of Species by Means of Natural Selection; or, the
Preservation of flavored Races in the Struggle for Life. John Murray, London, 1859.
• W. D. Hillis. Co-Evolving Parasites Improve Simulated Evolution as an Optimization
Procedure. Artificial Life 2, vol 10, Addison-Wesley, 1991.
• J. H. Holland. Adaptation in Natural and Artificial Systems. The University of
Michigan Press, Ann Arbor, Michigan, 1975.
• Z. Michalewicz. Genetic Algorithms + Data Structures = Evolution Programs.
Springer-Verlag, Berlin, third edition, 1996.
• M. Sipper. Machine Nature: The Coming Age of Bio-Inspired Computing. McGraw-
Hill, New-York, first edition, 2002.
• M. Tomassini. Evolutionary algorithms. In E. Sanchez and M. Tomassini, editors,
Towards Evolvable Hardware, volume 1062 of Lecture Notes in Computer Science,
pages 19-47. Springer-Verlag, Berlin, 1996.
16
Frame Work
17
Maximum no. of generations
Max. Fit. Value- Min. Fit. Value < Threshold
Encoding
• The first stage is to map solution characteristics
in the format of a chromosome string.
• The chromosome scheme determines not only
how effective the problem is structured, but also
how efficient the genetic operators are used.
• The chromosome representation consists of two
section:
 The parts section (P)
 The machines section (M)
18
Continued…
• Therefore, the solution is represented as a vector ‘S’
of size (M+P) in which each element is a member
of the set 1,2,. . .,C.
(C= No. of Cells)
as depicted in Fig.
19
• Where the possible maximum number of cells(C) is
defined as
C = (number of machines/2) + 1
Sample
Solution,
‘S’
Population Initialization
• Another stage is to generate a set of initial
solutions, called population. The number of
initial solutions to be contained in the
population is called population size.
• A procedure was developed in this research to
generate a random initial population while
constraints are satisfied, i.e. each machine and
each part should be assigned to only one cell.
20
Fitness function
• In GA implementation, a fitness function is used
to evaluate and reproduce new chromosomes,
called offspring for the generations to come.
• The purpose of the fitness function is to
measure the goodness of the candidate solutions
in the population with respect to the objective
and constraint functions of the model.
• The fitness value of a chromosome in the
proposed algorithm is maximizing the grouping
efficacy.
21
Crossover
• In this paper, the offspring are generated by
simple one-point crossover
22
S1
S2
Mutation
• A simple single point mutation operator is used
for mutation. The mutation operator randomly
changes the gene’s value according to a small
mutation probability. In this scheme an
individual is randomly chosen from the
population and a random number, l є {1,. .
.,M+P} is generated. Then, the number, c, in
position ‘l’ of the selected individual is
replaced by a c/ є {1,. . .,C-c}.
23
Continued…
• Mutation operator applied at S1
24
Selection
• The Roulette Wheel selection procedure is proposed.
However, Roulette Wheel selection is known to have
important drawbacks:
 First, it may lead to immature (early)
convergence
 Second, selection pressure is lost in the last steps
of the algorithm.
• To overcome this problem, relative fitness values are
used instead of absolute fitness values as follows:
25
where
rj is the relative fitness of individual ‘j’, f(i) is the absolute
fitness of individual ‘i’ and ‘P’ is the population.
Thanks
26

More Related Content

Similar to Genetic Algorithm Techniques for Solving Combinatorial Optimization Problems

Genetic Algorithms - GAs
Genetic Algorithms - GAsGenetic Algorithms - GAs
Genetic Algorithms - GAsMohamed Talaat
 
introduction of genetic algorithm
introduction of genetic algorithmintroduction of genetic algorithm
introduction of genetic algorithmritambharaaatre
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data MiningAtul Khanna
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paperPriti Punia
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmRespa Peter
 
WIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptxWIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptxKelvinCheah4
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmSHIMI S L
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceSahil Kumar
 
Advanced Optimization Techniques
Advanced Optimization TechniquesAdvanced Optimization Techniques
Advanced Optimization TechniquesValerie Felton
 
Flowchart of ga
Flowchart of gaFlowchart of ga
Flowchart of gaDEEPIKA T
 
evolutionary algo's.ppt
evolutionary algo's.pptevolutionary algo's.ppt
evolutionary algo's.pptSherazAhmed103
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic AlgorithmsVanessa Camilleri
 
Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Kapil Khatiwada
 

Similar to Genetic Algorithm Techniques for Solving Combinatorial Optimization Problems (20)

Genetic Algorithms - GAs
Genetic Algorithms - GAsGenetic Algorithms - GAs
Genetic Algorithms - GAs
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Genetic Algorithm
Genetic Algorithm Genetic Algorithm
Genetic Algorithm
 
introduction of genetic algorithm
introduction of genetic algorithmintroduction of genetic algorithm
introduction of genetic algorithm
 
CI_L02_Optimization_ag2_eng.pdf
CI_L02_Optimization_ag2_eng.pdfCI_L02_Optimization_ag2_eng.pdf
CI_L02_Optimization_ag2_eng.pdf
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
 
genetic computing
genetic computinggenetic computing
genetic computing
 
CI_L11_Optimization_ag2_eng.pptx
CI_L11_Optimization_ag2_eng.pptxCI_L11_Optimization_ag2_eng.pptx
CI_L11_Optimization_ag2_eng.pptx
 
Parallel evolutionary approach paper
Parallel evolutionary approach paperParallel evolutionary approach paper
Parallel evolutionary approach paper
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
Genetic algorithms mahyar
Genetic algorithms   mahyarGenetic algorithms   mahyar
Genetic algorithms mahyar
 
WIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptxWIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptx
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
 
Advanced Optimization Techniques
Advanced Optimization TechniquesAdvanced Optimization Techniques
Advanced Optimization Techniques
 
Flowchart of ga
Flowchart of gaFlowchart of ga
Flowchart of ga
 
evolutionary algo's.ppt
evolutionary algo's.pptevolutionary algo's.ppt
evolutionary algo's.ppt
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
 
Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)Genetic_Algorithm_AI(TU)
Genetic_Algorithm_AI(TU)
 

More from waqasjavaid26

More from waqasjavaid26 (6)

Entrepreneurs Myths.ppt
Entrepreneurs Myths.pptEntrepreneurs Myths.ppt
Entrepreneurs Myths.ppt
 
dynamics.ppt
dynamics.pptdynamics.ppt
dynamics.ppt
 
Lect-3.pptx
Lect-3.pptxLect-3.pptx
Lect-3.pptx
 
MUSIC.pptx
MUSIC.pptxMUSIC.pptx
MUSIC.pptx
 
Lec-9c-Polymer.ppt
Lec-9c-Polymer.pptLec-9c-Polymer.ppt
Lec-9c-Polymer.ppt
 
Lec-10-Engg & High Performance Polymer.pptx
Lec-10-Engg & High Performance Polymer.pptxLec-10-Engg & High Performance Polymer.pptx
Lec-10-Engg & High Performance Polymer.pptx
 

Recently uploaded

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 

Genetic Algorithm Techniques for Solving Combinatorial Optimization Problems

  • 2. Defination • A genetic algorithm (or short GA) is a search technique used in computing to find true or approximate solutions to optimization and search problems. • A genetic algorithm maintains a population of candidate solutions for the problem at hand, and makes it evolve by iteratively applying a set of stochastic operators. 2
  • 3. GA Quick Overview • Developed: USA in the 1970’s • Early names: J. Holland, K. DeJong, D. Goldberg • Inspired by the biological evolution process • Uses concepts of “Natural Selection” and “Genetic Inheritance” (Darwin 1859) • Typically applied to: – discrete optimization • Attributed features: – not too fast – good heuristic for combinatorial problems • Special Features: – Traditionally emphasizes combining information from good parents (crossover) – many variants, e.g., reproduction models, operators 3
  • 4. Classes of Search Techniques Search Techniques Calculus Base Techniques Guided Random Search Techniques Enumerative Techniques BFS DFS Dynamic Programming Tabu Search Hill Climbing Simulated Annealing Evolutionary Algorithms Genetic Programming Genetic Algorithms Fibonacci Sort 4
  • 5. Genetic Algorithms Techniques • GAs are a particular class of evolutionary algorithms. The techniques common to all GAs are:  Encoding (Representation)  Selection  Crossover (also called recombination)  Mutation • GAs are best used when the objective function is:  Discontinuous  Highly nonlinear  Stochastic  Has unreliable or undefined derivatives 5
  • 6. Biological Terminology • Gene: A single encoding of part of the solution space, i.e. either single bits or short blocks of adjacent bits that encode an element of the candidate solution. • Chromosome: A string of genes that represents a solution. • Population: The number of chromosomes available to test. 0 1 1 0 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 6
  • 7. Implementation of Genetic Algorithm Step # 1: Encoding (Representation) Step # 2: Selection of Fittest Chromosome Step # 3: Crossover Step # 4: Mutation 7
  • 8. 1. Encoding • The first step in the implementation of GA is encoding i.e. the representation of a problem solution/ chromosome. • Some of the different encoding techniques are:  Binary Encoding  Permutation Encoding  Value Encoding  Tree Encoding 8
  • 10. 2. Selection • After encoding and the random generation of an initial population the next step in GA is the selection of chromosomes which would take part as parents in crossover. • The main problem is how to carryout this selection. As per Darwin’s evolution theory, the fittest chromosomes survive through generations and are most likely to take part in crossover and create offspring. • Some of the well known techniques of selection are”  Tournament selection  Roulette wheel selection  Steady state selection  Rank selection 10
  • 11. 3. Crossover • After the selection of chromosomes for crossover, the next task is to decide how to carryout the process of crossover so that genes from two parents can be recombined and children are created. • Crossover can be carried out in a number of ways. Some of them are shown in next slide. 11
  • 14. 4. Mutation • The main aim of carrying out mutation is to induce a certain level of diversity into population so that GA can be prevented from getting trapped into a local optimum. • Like crossover the decision of how to perform mutation, also, depends upon the type of encoding being used. The different mutation techniques, for different types of encoding are shown is next slide. 14
  • 16. References • W. Williams, Genetic Algorithms: A Tutorial, http://web.umr.edu/~ercal/387/slides/GATutorial.ppt • A. Eiben, J. Smith, Introduction to Evolutionary Computing, Genetic Algorithms, http://www.cs.vu.nl/~jabekker/ec0607/slides/Lecture03-Chapter3- GeneticAlgorithms.ppt • R. Horst and P.M. Pardalos(eds.), Handbook of Global Optimization, Kluwer, Dordrecht 1995. • M. Mitchell, An Introduction To Genetic Algorithms, Cambridge, MA: MIT Press, 1996. • C. Darwin. On the Origin of Species by Means of Natural Selection; or, the Preservation of flavored Races in the Struggle for Life. John Murray, London, 1859. • W. D. Hillis. Co-Evolving Parasites Improve Simulated Evolution as an Optimization Procedure. Artificial Life 2, vol 10, Addison-Wesley, 1991. • J. H. Holland. Adaptation in Natural and Artificial Systems. The University of Michigan Press, Ann Arbor, Michigan, 1975. • Z. Michalewicz. Genetic Algorithms + Data Structures = Evolution Programs. Springer-Verlag, Berlin, third edition, 1996. • M. Sipper. Machine Nature: The Coming Age of Bio-Inspired Computing. McGraw- Hill, New-York, first edition, 2002. • M. Tomassini. Evolutionary algorithms. In E. Sanchez and M. Tomassini, editors, Towards Evolvable Hardware, volume 1062 of Lecture Notes in Computer Science, pages 19-47. Springer-Verlag, Berlin, 1996. 16
  • 17. Frame Work 17 Maximum no. of generations Max. Fit. Value- Min. Fit. Value < Threshold
  • 18. Encoding • The first stage is to map solution characteristics in the format of a chromosome string. • The chromosome scheme determines not only how effective the problem is structured, but also how efficient the genetic operators are used. • The chromosome representation consists of two section:  The parts section (P)  The machines section (M) 18
  • 19. Continued… • Therefore, the solution is represented as a vector ‘S’ of size (M+P) in which each element is a member of the set 1,2,. . .,C. (C= No. of Cells) as depicted in Fig. 19 • Where the possible maximum number of cells(C) is defined as C = (number of machines/2) + 1 Sample Solution, ‘S’
  • 20. Population Initialization • Another stage is to generate a set of initial solutions, called population. The number of initial solutions to be contained in the population is called population size. • A procedure was developed in this research to generate a random initial population while constraints are satisfied, i.e. each machine and each part should be assigned to only one cell. 20
  • 21. Fitness function • In GA implementation, a fitness function is used to evaluate and reproduce new chromosomes, called offspring for the generations to come. • The purpose of the fitness function is to measure the goodness of the candidate solutions in the population with respect to the objective and constraint functions of the model. • The fitness value of a chromosome in the proposed algorithm is maximizing the grouping efficacy. 21
  • 22. Crossover • In this paper, the offspring are generated by simple one-point crossover 22 S1 S2
  • 23. Mutation • A simple single point mutation operator is used for mutation. The mutation operator randomly changes the gene’s value according to a small mutation probability. In this scheme an individual is randomly chosen from the population and a random number, l є {1,. . .,M+P} is generated. Then, the number, c, in position ‘l’ of the selected individual is replaced by a c/ є {1,. . .,C-c}. 23
  • 25. Selection • The Roulette Wheel selection procedure is proposed. However, Roulette Wheel selection is known to have important drawbacks:  First, it may lead to immature (early) convergence  Second, selection pressure is lost in the last steps of the algorithm. • To overcome this problem, relative fitness values are used instead of absolute fitness values as follows: 25 where rj is the relative fitness of individual ‘j’, f(i) is the absolute fitness of individual ‘i’ and ‘P’ is the population.