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
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
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 1 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 2 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 3 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 4 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 5 / 26
Chromosome Nucleus Other cell bodies
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 6 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 7 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 8 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 9 / 26
1
2
3
4
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 10 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 11 / 26
Genetics Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 12 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 13 / 26
Start Initial Population
Converge ?
Stop
Selection
Yes No
Reproduction Note:
An individual in the population is corresponding to a possible solution
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 14 / 26
1
2
3
4
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 15 / 26
Start Initialize population
Converge ?
Stop Evaluate the fitness Select Mate Crossover Mutation Inversion Yes No
Reproduction
Define parameters Parameter representation Create population Apply cost function to each of the population
Selection
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 16 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 17 / 26
1
2
3
4
5
6
7
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 18 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 19 / 26
Start Create Initial population
Convergence Criteria meet ?
Stop Select Np individuals (with repetition) Create mating pool (randomly) (Pair of parent for generating new offspring) Perform crossover and create new offsprings Mutate the offspring Perform inversion on the offspring Yes No Evaluate each individuals Replace all individuals in the last generation with new offsprings created Return the individual(s) with best fitness value Reproduction
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 20 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 21 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 22 / 26
Start Generate Initial population of size N
Reject the
duplicated
Stop Evaluate the offspring If the offspring are better than the worst individuals then replace the worst individuals with the offspring Yes No Evaluate each individuals Return the solutions Select two individual without repetition Crossover Mutation Inversion
Convergence meet ?
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 23 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 24 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 25 / 26
Debasis Samanta (IIT Kharagpur) Soft Computing Applications 26.02.2016 26 / 26