Harnessing Genetics Genetic Algorithms (GA) Genetic Algorithms CPSC 607 John H. Holland � 1975 � Christian Jacob David Goldberg Dept. of Computer Science Dept. of Biochemistry & Molecular Biology � 1989 � University of Calgary Christian Jacob, University of Calgary Christian Jacob, University of Calgary How Genetic Algorithms W ork GA Dualism: Binary Encoding {1,0,1,1,0,1,0,0,1,0,1,1} Ind. 2 {0,1,1,1,1,0,0,1,0,0,0,1} Ind. 5 {1,1,0,0,0,1,0,1,0,1,0,0} Genotype Phenotype ... Evaluation Selection {1,0,1,0,0,1,1,1,0,1,1,1} Ind. 37 {0,0,1,1,0,1,1,1,0,1,0,0} {1,0,1,1,0,1,0,0,1,0,1,1} {1,0,0,1,0,1,1,1,0,0,0,1} Ind. 40 {0,1,1,1,1,0,0,1,0,0,0,1} 0 2 4 6 {0,0,1,1,0,1,1,1,0,1,0,0} { 0,0,1,1,0,1,1,1,0,1,0,0 } { 1,1,0,0,0,1,0,1,0,1,0,0 } Decoding ... Mutation {1,1,0,0,0,1,0,1,0,1,0,0} {0,1,1,1,0,0,1,1,0,1,1,0} {1,1,1,1,0,1,0,1,0,0,0,0} Interpretation ... Crossover {1,0,1,0,0,1,1,1,0,1,1,1} {1,1,1,1,0,0,1,1,0,1,1,0} {0,1,1,1,0,1,0,1,0,0,0,0} {0,0,1,1,0,1,1,1,0,1,0,0} {1,0,1,1,0,1,0,0,1,0,1,1} {1,0,0,1,0,1,1,1,0,0,0,1} {0,1,1,1,1,0,0,1,0,0,0,1} {1,1,0,0,0,1,0,1,0,1,0,0} Interpretation ... {1,0,1,0,0,1,1,1,0,1,1,1} Insert in Genepool {0,0,1,1,0,1,1,1,0,1,0,0} {1,0,0,1,0,1,1,1,0,0,0,1} Christian Jacob, University of Calgary Christian Jacob, University of Calgary Evolution with Evolution with V arying Objective Function V arying Objective Function Generation 0 Generation 11 Generation 10 Generation 30 Generation 0 to Generation 10 Christian Jacob, University of Calgary Christian Jacob, University of Calgary
Evolution with Comparison of Genetic Operators V arying Objective Function Initial Population Mutation Recombination Inversion Deletion Duplication Generation 11 to Generation 30 Christian Jacob, University of Calgary Christian Jacob, University of Calgary Comparison of Genetic Operators Comparison of Genetic Operators Initial Population Mutation Recombination Initial Population Mutation Recombination Inversion Deletion Duplication Inversion Deletion Duplication Christian Jacob, University of Calgary Christian Jacob, University of Calgary Comparison of Genetic Operators Comparison of Genetic Operators Initial Population Mutation Recombination Initial Population Mutation Recombination Inversion Deletion Duplication Inversion Deletion Duplication Christian Jacob, University of Calgary Christian Jacob, University of Calgary
Comparison of Genetic Operators Comparison of Genetic Operators Initial Population Mutation Recombination Initial Population Mutation Recombination Inversion Deletion Duplication Inversion Deletion Duplication Christian Jacob, University of Calgary Christian Jacob, University of Calgary GA Dualism Comparison of Genetic Operators {1,0,1,1,0,1,0,0,1,0,1,1} Ind. 2 {0,1,1,1,1,0,0,1,0,0,0,1} Ind. 5 {1,1,0,0,0,1,0,1,0,1,0,0} ... Evaluation Selection {1,0,1,0,0,1,1,1,0,1,1,1} Ind. 37 {0,0,1,1,0,1,1,1,0,1,0,0} {1,0,0,1,0,1,1,1,0,0,0,1} Ind. 40 0 2 4 6 Initial Population Mutation Recombination { 0,0,1,1,0,1,1,1,0,1,0,0 } { 1,1,0,0,0,1,0,1,0,1,0,0 } Mutation {0,1,1,1,0,0,1,1,0,1,1,0} {1,1,1,1,0,1,0,1,0,0,0,0} Crossover {1,1,1,1,0,0,1,1,0,1,1,0} {0,1,1,1,0,1,0,1,0,0,0,0} {1,0,1,1,0,1,0,0,1,0,1,1} Inversion Deletion Duplication {0,1,1,1,1,0,0,1,0,0,0,1} {1,1,0,0,0,1,0,1,0,1,0,0} Interpretation ... {1,0,1,0,0,1,1,1,0,1,1,1} Insert in Genepool {0,0,1,1,0,1,1,1,0,1,0,0} {1,0,0,1,0,1,1,1,0,0,0,1} Christian Jacob, University of Calgary Christian Jacob, University of Calgary GA Dualism � Dualism in Nature GA Dualism � Dualism in Nature Genotype Phenotype Genotype Phenotype Transcription Translation Decoding Interpretation Development Morphogenesis Christian Jacob, University of Calgary Christian Jacob, University of Calgary
Genetic Algorithms & Programming Genetic Algorithms & Programming Genotype Phenotype Genotype Phenotype Transcription Transcription Translation Translation Program Program Code Code Development Development Morphogenesis Morphogenesis Christian Jacob, University of Calgary Christian Jacob, University of Calgary References • Genetic Algorithms : – Goldberg, D. (1989). Genetic Algorithms in Search, Optimization, and Machine Learning. Reading, MA, Addison- Wesley. – Holland, J. H. (1975). Adaptation in Natural and Artificial Systems. Ann Arbor, MI, University of Michigan Press. – Holland, J. H. (1992). Adaptation in Natural and Artificial Systems. Cambridge, MA, MIT Press (originally published in 1975). – Jacob, C. (2001). Illustrating Evolutionary Computation with Mathematica. San Francisco, CA, Morgan Kaufmann Publishers (Chapter 3). Christian Jacob, University of Calgary
Recommend
More recommend