Download presentation

Presentation is loading. Please wait.

Published byJulius Hamlet Modified over 2 years ago

1
Genetic Algorithm Example based on Koza, J. 1993. Genetic Programming. Cambridge MA: Basic Books

2
D Goforth - COSC 4117, fall 20062 Avoiding paths altogether genetic algorithms 1.pick set of states randomly 2.order states by fitness 3.create new set of states by combining state variables of most fit 4.make a few random changes to state variables 5.go to 2

3
D Goforth - COSC 4117, fall 20063 Example: Koza, based on Goldberg and Samtani in 1986 Problem minimize cost of 10-member truss that meets stress requirements 100kg 8m 6m A10 A1 A2 A3 A4 A5 A6 A7 A8 A9

4
D Goforth - COSC 4117, fall 20064 Example: Koza, based on Goldberg and Samtani in 1986 Problem minimize cost of 10-member truss that meets stress requirements 100kg 8m 6m A10 A1 A2 A3 A4 A5 A6 A7 A8 A9

5
D Goforth - COSC 4117, fall 20065 Problem definition 16 levels of strength for beams based on cross- section; cost increases with cross-section Stress requirements for the truss Goal: minimize cost of safe truss 100kg 8m 6m A10 A1 A2 A3 A4 A5 A6 A7 A8 A9 Cost is minimized by minimizing truss weight = cross-section * length Stress calculations are based on all member weights (succeed/fail)

6
D Goforth - COSC 4117, fall 20066 Problem representation Represent cross-sections by 4-bit binary code Represent a particular design by 10x4=40 bits E.g., 0110 1101 0101 0101 1011 0110 1010 1010 1111 0111 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 State space is set of all possible designs 2 40 designs No obvious start state; no “path” to solution Genetic algorithm

7
D Goforth - COSC 4117, fall 20067 Genetic Algorithm I 1.pick set of states randomly (initial population) 0110 1101 0101 0101 1011 0110 1010 1010 1111 0111 (351) 1011 0110 1010 1010 1111 1101 0101 0111 0110 0101 (377) 1101 1011 0110 1010 0110 1111 1101 0101 1010 0111 (391) 0110 1101 1011 0101 0101 0110 1111 0111 1010 1010 (438) 1001 0111 0101 1011 0110 1010 1010 0110 1101 0101 (fail) 1111 0111 0110 1101 0101 0101 1011 0110 1010 1010 (fail) 2.order states by fitness (weight, stress)

8
D Goforth - COSC 4117, fall 20068 Genetic Algorithm II 3.create new set of states by combining state variables of (3) most fit and replacing least fit 1011 0110 1010 1010 1011 0110 1010 1010 1111 0111 (337) 0110 1101 0101 0101 1011 0110 1010 1010 1111 0111 (351) 0110 1101 0101 0101 1011 0110 1101 0101 1010 0111 (366) 0110 1101 0100 0101 1111 1101 0101 0111 0110 0101 (370) 1011 0110 1010 1010 1111 1101 1101 0111 0110 0101 (377) 1101 1011 0110 1010 0110 1111 1101 0101 1010 0111 (391) 4.make a few mutations (random changes to variables) 5.go to 2 repeat until no more improvement in best fitness

Similar presentations

OK

Estimation of Distribution Algorithms Ata Kaban School of Computer Science The University of Birmingham.

Estimation of Distribution Algorithms Ata Kaban School of Computer Science The University of Birmingham.

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Free ppt on team building and leadership Ppt online marketing Ppt on machine translation japanese Ppt on layer 3 switching vs layer Ppt on asymptotic notation of algorithms in c Ppt on bluetooth architecture ppt Ppt on carburetor system diagram Ppt on javascript events load Ppt on social networking sites advantages and disadvantages Converter word para ppt online