Download - Genetic algorithm
![Page 1: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/1.jpg)
Genetic Algorithm
S.H - Fall 2014
![Page 2: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/2.jpg)
Introduction
GA is a method normally used to generate useful solutions to optimization problems.
Genetic algorithms belong to the larger class of evolutionary algorithms (EA), which generate solutions to optimization problems using techniques inspired by natural evolution.
![Page 3: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/3.jpg)
InheritanceCrossover
![Page 4: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/4.jpg)
DNA needs to be copied when cells divide, so that each new cell has a complete set of genetic instructions.
The cellular process of copying DNA is full of mechanisms that check and double check the construction of a new DNA molecule. But when changes, or DNA mistakes do occur, it is usually harmful or at best has no effect on the organism.
![Page 5: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/5.jpg)
Mutation
![Page 6: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/6.jpg)
Based on Darwin’s Theory
![Page 7: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/7.jpg)
Population
Individual (Chromosome)
![Page 8: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/8.jpg)
Gen
etic
Alg
ori
thm
Creating Initial Population
Encoding
Applying Fitness Function
Genetic Operators
Termination
Decoding
Randomly generated individuals
A previously saved population
A set of solutions provided by a human expert
A set of solutions provided by another heuristic algorithm
![Page 9: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/9.jpg)
Gen
etic
Alg
ori
thm
Creating Initial Population
Encoding
Applying Fitness Function
Genetic Operators
Termination
Decoding
Bit strings (0101 ... 1100)
Real numbers (43.2 -33.1 ... 89.2)
Permutations of element (E11 E3 E7 ... E1 E15)
Lists of rules (R1 R2 R3 ... R22 R23)
![Page 10: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/10.jpg)
![Page 11: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/11.jpg)
Gen
etic
Alg
ori
thm
Creating Initial Population
Encoding
Applying Fitness Function
Genetic Operators
Termination
Decoding
Determines the fitness of each member of the population.
Performs the objective function on each population member.
The most simple fitness function can be the objective function.
![Page 12: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/12.jpg)
Gen
etic
Alg
ori
thm
Creating Initial Population
Encoding
Applying Fitness Function
Genetic Operators
Termination
Decoding
Inheritance - Crossover
Mutation
![Page 13: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/13.jpg)
Crossover
![Page 14: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/14.jpg)
![Page 15: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/15.jpg)
Mutation
![Page 16: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/16.jpg)
Gen
etic
Alg
ori
thm
Creating Initial Population
Encoding
Applying Fitness Function
Genetic Operators
Termination
Decoding
![Page 17: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/17.jpg)
A solution is found that satisfies minimum criteria
Fixed number of generations reached
Allocated budget (computation time/money) reached
The highest ranking solution's fitness is reaching
No improvement in solution quality
![Page 18: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/18.jpg)
Gen
etic
Alg
ori
thm
Creating Initial Population
Encoding
Applying Fitness Function
Genetic Operators
Termination
Decoding
![Page 19: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/19.jpg)
Decoding
011101001
010001001
10010010
10010001
![Page 20: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/20.jpg)
Gen
etic
Alg
ori
thm
Creating Initial Population
Encoding
Applying Fitness Function
Genetic Operators
Termination
Decoding
Selection
Crossover
Mutation
![Page 21: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/21.jpg)
Max x2 over {0,1,…,31}(Selection)
![Page 22: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/22.jpg)
Roulette Wheel
A C
1/6 = 17%
3/6 = 50%
B
2/6 = 33%fitness(A) = 3
fitness(B) = 1
fitness(C) = 2
![Page 23: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/23.jpg)
Max x2 over {0,1,…,31}(Crossover)
![Page 24: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/24.jpg)
Max x2 over {0,1,…,31}(Mutation)
![Page 25: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/25.jpg)
![Page 26: Genetic algorithm](https://reader033.vdocument.in/reader033/viewer/2022042701/55a96d9b1a28ab26508b45e6/html5/thumbnails/26.jpg)