introduction to genetic algorithm
play

Introduction to Genetic Algorithm Debasis Samanta Indian Institute - PowerPoint PPT Presentation

Introduction to Genetic Algorithm Debasis Samanta Indian Institute of Technology Kharagpur dsamanta@sit.iitkgp.ernet.in 26.02.2016 Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 1 / 26 Limitations of the traditional


  1. Introduction to Genetic Algorithm Debasis Samanta Indian Institute of Technology Kharagpur dsamanta@sit.iitkgp.ernet.in 26.02.2016 Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 1 / 26

  2. Limitations of the traditional optimization approaches Limitations: Computationally expensive. For a discontinuous objective function, methods may fail. Method may not be suitable for parallel computing. Discrete (integer) variables are difficult to handle. Methods may not necessarily adaptive. Evolutionary algorithms have been evolved to address the above mentioned limitations of solving optimization problems with traditional approaches. Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 2 / 26

  3. Evolutionary Algorithms The algorithms, which follow some biological and physical behaviors: Biologic behaviors: Genetics and Evolution – > Genetic Algorithms (GA) Behavior of ant colony – > Ant Colony Optimization (ACO) Human nervous system – > Artificial Neural Network (ANN) In addition to that there are some algorithms inspired by some physical behaviors: Physical behaviors: Annealing process – > Simulated Annealing (SA) Swarming of particle – > Particle Swarming Optimization (PSO) Learning – > Fuzzy Logic (FL) Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 3 / 26

  4. Genetic Algorithm It is a subset of evolutionary algorithm: Ant Colony optimization Swarm Particle Optimization Models biological processes: Genetics Evolution To optimize highly complex objective functions: Very difficult to model mathematically NP-Hard (also called combinatorial optimization) problems (which are computationally very expensive) Involves large number of parameters (discrete and/or continuous) Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 4 / 26

  5. Background of Genetic Algorithm Firs time itriduced by Ptrof. John Holland (of Michigan University, USA, 1965). But, the first article on GA was published in 1975. Principles of GA based on two fundamental biological processes: Genetics: Gregor Johan Mendel (1865) Evolution: Charles Darwin (1875) Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 5 / 26

  6. A brief account on genetics The basic building blocks in living bodies are cells. Each cell carries the basic unit of heredity, called gene Nucleus Chromosome Other cell bodies For a particular specie, number of chromosomes is fixed. Examples Mosquito: 6 Frogs: 26 Human: 46 Goldfish: 94 etc. Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 6 / 26

  7. A brief account on genetics Genetic code Spiral helix of protein substance is called DNA. For a specie, DNA code is unique, that is, vary uniquely from one to other. DNA code (inherits some characteristics from one generation to next generation) is used as biometric trait. Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 7 / 26

  8. A brief account on genetics Reproduction + = Organism’s cell : Cell division x y gamete diploid Each chromosome from (Reproductive cell has diploid haploid both haploids are combined half the number of to have full numbers chromosomes) Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 8 / 26

  9. A brief account on genetics Crossing over Kinetochore Information from Combined into so that diversity two different in information is possible organism’s body cells Random crossover points makes infinite diversities Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 9 / 26

  10. A brief account on evolution Evolution : Natural Selection Four primary premises: Information propagation: An offspring has many of its 1 characteristics of its parents (i.e. information passes from parent to its offspring). [Heredity] Population diversity: Variation in characteristics in the next 2 generation. [Diversity] Survival for exitence: Only a small percentage of the offspring 3 produced survive to adulthood. [Selection] Survival of the best: Offspring survived depends on their 4 inherited characteristics. [Ranking] Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 10 / 26

  11. A brief account on evolution Mutation: To make the process forcefully dynamic when variations in population going to stable. Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 11 / 26

  12. Biological process : A quick overview Genetics Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 12 / 26

  13. Working of Genetic Algorithm Definition of GA: Genetic algorithm is a population-based probabilistic search and optimization techniques, which works based on the mechanisms of natural genetics and natural evaluation . Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 13 / 26

  14. Framework of GA Start Note: An individual in the population is corresponding to a Initial Population possible solution No Converge ? Selection Yes Reproduction Stop Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 14 / 26

  15. Working of Genetic Algorithm Note: GA is an iterative process. 1 It is a searching technique. 2 Working cycle with / without convergence. 3 Solution is not necessarily guranteed. Usually, terminated with a 4 local optima. Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 15 / 26

  16. Framework of GA: A detail view Start Define parameters Parameter representation Create population Initialize population Apply cost function to each of the population No Evaluate the fitness Converge ? Selection Yes Select Mate Stop Crossover Reproduction Mutation Inversion Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 16 / 26

  17. Optimization problem solving with GA For the optimization problem, identify the following: Objective function(s) Constraint(s) Input parameters Fitness evaluation (it may be algorithm or mathematical formula) Encoding Decoding Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 17 / 26

  18. GA Operators In fact, a GA implementation involved with the realization of the following operations. Encoding: How to represent a solution to fit with GA framework. 1 Convergence: How to decide the termination criterion. 2 Mating pool: How to generate next solutions. 3 Fitness Evaluation: How to evaluate a solution. 4 Crossover: How to make the diverse set of next solutions. 5 Mutation: To explore other solution(s). 6 Inversion: To move from one optima to other. 7 Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 18 / 26

  19. Different GA Strategies Simple Genetic Algorithm (SGA) Steady State Genetic Algorithm (SSGA) Messy Genetic Algorithm (MGA) Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 19 / 26

  20. Simple GA Start Create Initial population of size N Evaluate each individuals Yes Return the individual(s) with Convergence Criteria meet ? best fitness value No Select Np individuals (with repetition) Stop Create mating pool (randomly) (Pair of parent for generating new offspring) Perform crossover and create new offsprings Reproduction Mutate the offspring Perform inversion on the offspring Replace all individuals in the last generation with new offsprings created Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 20 / 26

  21. Important parameters involved in Simple GA SGA Parameters Initial population size : N Size of mating pool, N p : N p = p % ofN Convergence threshold δ Mutation µ Inversion η Crossover ρ Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 21 / 26

  22. Salient features in SGA Simple GA features: Have overlapping generation (Only fraction of individuals are replaced). Computationally expensive. Good when initial population size is large. In general, gives better results. Selection is biased toward more highly fit individuals; Hence, the average fitness (of overall population) is expected to increase in succession. The best individual may appear in any iteration. Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 22 / 26

  23. Steady State Genetic Algorithm (SSGA) Start Generate Initial population of size N Evaluate each individuals Select two individual without repetition Crossover Mutation Inversion Yes Reject the offspring if duplicated No Evaluate the offspring If the offspring are better than the worst individuals then replace the worst individuals with the offspring Convergence meet ? Return the solutions Stop Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 23 / 26

  24. Salient features in Steady-state GA SGA Features: Generation gap is small. Only two offspring are produced in one generation. It is applicable when Population size is small Chromosomes are of longer length Evaluation operation is less computationally expensive (compare to duplicate checking) Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 24 / 26

Recommend


More recommend