Genetic Algorithms: Solving the Traveling Salesman Problem Thomas Abtey SUNY Oswego.

Slides:



Advertisements
Similar presentations
CS6800 Advanced Theory of Computation
Advertisements

1 APPENDIX A: TSP SOLVER USING GENETIC ALGORITHM.
CSM6120 Introduction to Intelligent Systems Evolutionary and Genetic Algorithms.
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
1 Wendy Williams Metaheuristic Algorithms Genetic Algorithms: A Tutorial “Genetic Algorithms are good at taking large, potentially huge search spaces and.
Hybridization of Search Meta-Heuristics Bob Buehler.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Previously in Chapter 6 Using binary variables Unintended options Lack of sensitivity analysis.
Genetic Algorithms Learning Machines for knowledge discovery.
Artificial Intelligence Genetic Algorithms and Applications of Genetic Algorithms in Compilers Prasad A. Kulkarni.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Artificial Intelligence in Information Processing Genetic Algorithms by Theresa Kriese for Distributed Data Processing.
Brandon Andrews.  What are genetic algorithms?  3 steps  Applications to Bioinformatics.
GAlib A C++ Library of Genetic Algorithm Components Vanessa Herves Gómez Department of Computer Architecture and Technology,
Christoph F. Eick: Applying EC to TSP(n) Example: Applying EC to the TSP Problem  Given: n cities including the cost of getting from on city to the other.
Genetic Algorithms: A Tutorial
Genetic Algorithms and Ant Colony Optimisation
Evolutionary Intelligence
Telerik Software Academy academy.telerik.com. 1. Heuristics 2. Greedy 3. Genetic algorithms 4. Randomization 5. Geometry 2.
Introduction to Genetic Algorithms and Evolutionary Computation
Genetic algorithms Prof Kang Li
A Genetic Solution to the Travelling Salesman Problem Ryan Honig.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
CS440 Computer Science Seminar Introduction to Evolutionary Computing.
Ch.12 Machine Learning Genetic Algorithm Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011.
6.1 Hamilton Circuits and Paths: Hamilton Circuits and Paths: Hamilton Path: Travels to each vertex once and only once… Hamilton Path: Travels to each.
A Genetic Solution to the Travelling Salesman Problem Ryan Honig.
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
Local Search: walksat, ant colonies, and genetic algorithms.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
GENETIC ALGORITHMS.  Genetic algorithms are a form of local search that use methods based on evolution to make small changes to a popula- tion of chromosomes.
 Analysis Wrap-up. What is analysis?  Look at an algorithm and determine:  How much time it takes  How much space it takes  How much programming.
Learning by Simulating Evolution Artificial Intelligence CSMC February 21, 2002.
Evolution Programs (insert catchy subtitle here).
1 Genetic Algorithms and Ant Colony Optimisation.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Biologically inspired algorithms BY: Andy Garrett YE Ziyu.
GENETIC ALGORITHMS Tanmay, Abhijit, Ameya, Saurabh.
Genetic Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Genetic Algorithms and TSP Thomas Jefferson Computer Research Project by Karl Leswing.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
March 1, 2016Introduction to Artificial Intelligence Lecture 11: Machine Evolution 1 Let’s look at… Machine Evolution.
Genetic Algorithm (Knapsack Problem)
Genetic Algorithms.
Using GA’s to Solve Problems
Genetic Algorithms.
Genetic Algorithms.
Example: Applying EC to the TSP Problem
Artificial Intelligence Project 2 Genetic Algorithms
Genetic Algorithm and Their Applications to Scheduling
Comparing Genetic Algorithm and Guided Local Search Methods
Genetic Algorithms overview
Yu-Chi Ho Jonathan T. Lee Harvard University Sep. 7, 2000
Genetic Algorithms: A Tutorial
Example: Applying EC to the TSP Problem
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Artificial Intelligence CIS 342
Traveling Salesman Problem by Genetic Algorithm
Genetic Algorithms: A Tutorial
Presentation transcript:

Genetic Algorithms: Solving the Traveling Salesman Problem Thomas Abtey SUNY Oswego

Genetic Algorithm - Invented by John Holland, 1960's - Analogies to Biological Evolution - Fitness - Selection - Crossover (Reproduction) - Mutation - Uses in Optimization, Approximation

Genetic Algorithm (cont.) - Evolution is a process of selection and reproduction - Inheritance from Parents to Children - Simplified cycle: - For a population, assign fitness values to each individual - Create a new population by breeding (and mutating) the fittest individuals

Traveling Salesman Problem - “Given a set of cities and their distances, what is the shortest tour possible visiting each city only once?” - For 9 cities, 9! = 362,880 possible solutions - Application in scheduling/order problems - Brute-force method time becomes enormous

Genetic Approach to TSP - Population is a list of individuals - Individual is a list of cities - City is a name (and a set of distances) > Houston Hollywood Las-Vegas SLC Chicago NYC Oswego Miami Philadelphia

Mutation - A mutation alters city ordering in an Individual - Two cities are chosen randomly to be switched (A B* C D E F G* H) (A G* C D E F B* H)

Crossover - Based on Greedy Subtour Crossover (GSX) by Sengoku and Yoshihara: - Choose two parents, i1 and i2 - Choose a city as a mid-point for new tour - From midpoint, do until tour will be invalid: - Place i1's cities to front of new tour - Place i2's cities to back of new tour - Remaining cities (if any) will be appended to back of new tour

Crossover (cont.) Example: Mom = (ABCDEFGHI) Dad = (DFEGAHBCI) Mid-Point = G (G) (FG) (FGA) (EFGA) (EFGAH) (DEFGAH) (DEFGAHB-) (-CDEFGAHB-) =>(CDEFGAHBI)

Results Brute-Force Solution: - (Hollywood Las-Vegas SLC Houston Chicago Philadelphia NYC Oswego Miami) - A length of 40* - Multiple tours of length 40 * Multiplying this value by 1,000 will give actual geographic distance in miles.

Results (cont.) - GA Solution: - Quickly reduces average tour length in a pop - Comes close to actual solution - GA with 25 individuals over 55 generations: Generation 1 average fitness Generation 2 average fitness Generation 3 average fitness Generation 4 average fitness … Generation 54 average fitness Generation 55 average fitness

References & Resources Senguko, H., Yoshihara, I. “A Fast TSP Solver Using GA on JAVA” Mitchell, M. “Introduction to Genetic Algorithms” Holland, H. “Adaptation in Natural and Artificial System: an introductory analysis with applications to biology, control, and artificial intelligence” Common LISP.

Questions? o o / \ o o \ / o o