Top Banner
Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk
20

Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Jan 01, 2016

Download

Documents

Madeleine Snow
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Genetic Algorithms

CS460: Capstone Experience ProjectSergii S. Bilokhatniuk

Page 2: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Project

• Simulate genetic algorithms and analyze effects of mutations

• General Requirement• Develop a gentle tutorial for the concept of genetic algorithms.• Pick an existing program and modify it.• The system graphically displays the state of each generation with appropriate

statistics that show progress toward the goal.• The system should allow dynamic modification of parameters, operators, and

probabilities.• Add your own genetic operators based on your analysis.• Pick a new problem and create a genetic solution by mutating populations. The

problem should be NP-complete and your results should be compared analytically to a known algorithm that approximates a solution.

Page 3: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Potential Applications of GA

virtually anything where potential solution isa) string of symbolsb) testable for fitness

• Generating automatons• Finding routes• Constructing formulas• Writing War & Peace (not really)• …

Page 4: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Choosing the Problem

Traveling Salesman Problem (TSP):Given a list of cities and a map of the roads• visit each city once,• come back to hometown• use the shortest route.

Page 5: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

TSP, Domain and Range

• Input: Map• Output: Path

Page 6: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

TSP Solution Process

a) Create boring presentation about TSPb) ???c) Profit

Page 7: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

TSP Solution Process

a) Create initial population of routesb) Assess fitness of each routec) If not satisfactory, create new populationd) Introduce mutation (optional)e) Goto b)

Page 8: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Choosing Implementation

Implementation AssessmentJava Applet / JavaScript seems popular

Server-side (Java/.NET) model and client-side view-controller (JavaScript/HTML)

would be awesome

Standalone desktop application (C#, Window Forms)

could actually work

Page 9: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Species

Page 10: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Generation of Solution

a) select first/last node (using schemata*)b) randomly generate a speciec) test if good (not bad or ugly)d) Repeat

* — zero/one mask

Page 11: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Procreation

• Schema One

• Creates good/bad/ugly• Small rate of success

Page 12: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

More Procreation

• Schema Two

• Greater rate of success• Creates Good/Ugly

Page 13: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Mutation

• Schema One, Random

• Generates mostly Bad/Ugly (for not-connected graph)

Page 14: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

More Mutation

• Schema Two, Selective

• Generates Good/Ugly

Page 15: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Fitness

• Simple comparer– Maximum– Minimum– Average

Page 16: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Population Control

• Elitism Rate– % of population selected to be carried over to next

generation without change– Elite gets to procreate too– Discard same % of least performing part of

population• Mutation Rate– % of genes of each new specie that get mutated

Page 17: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Process

Page 18: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Demo

“Let There Be Algorithms…”

Page 19: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

What I have learned

It was all worth it.

Page 20: Genetic Algorithms CS460: Capstone Experience Project Sergii S. Bilokhatniuk.

Thanks! I hope it went well

• Question?• Suggestions?• Job Offers?