A Genetic Solution to the Travelling Salesman Problem Ryan Honig.

Slides:



Advertisements
Similar presentations
Hard Problems Some problems are hard to solve. No polynomial time algorithm is known Most combinatorial optimization problems are hard Popular NP-hard.
Advertisements

CS6800 Advanced Theory of Computation
Exact and heuristics algorithms
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 4 Jim Martin.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
Genetic Algorithms By: Jacob Noyes 4/16/2013. Traveling Salesman Problem Given:  A list of cities  Distances between each city Find:  Shortest path.
Monte Carlo Methods and the Genetic Algorithm Applications and Summary John E. Nawn MAT 5900 April 5 th, 2011.
Math443/543 Mathematical Modeling and Optimization
Nature’s Algorithms David C. Uhrig Tiffany Sharrard CS 477R – Fall 2007 Dr. George Bebis.
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
Evolved and Timed Ants Optimizing the Parameters of a Time-Based Ant System Approach to the Traveling Salesman Problem Using a Genetic Algorithm.
Travelling Salesman Problem an unfinished story...
A Hybrid Heuristic for the Traveling Salesman Problem R. Baraglia, J. I. Hildalgo, R. Perego CMPSC 580, Spring 2006.
EA* A Hybrid Approach Robbie Hanson. What is it?  The A* algorithm, using an EA for the heuristic.  An efficient way of partitioning the search space.
Imagine that I am in a good mood Imagine that I am going to give you some money ! In particular I am going to give you z dollars, after you tell me the.
Genetic Algorithms: Solving the Traveling Salesman Problem Thomas Abtey SUNY Oswego.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Artificial Intelligence in Information Processing Genetic Algorithms by Theresa Kriese for Distributed Data Processing.
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.
Busby, Dodge, Fleming, and Negrusa. Backtracking Algorithm Is used to solve problems for which a sequence of objects is to be selected from a set such.
EE4E,M.Sc. C++ Programming Assignment Introduction.
Telerik Software Academy academy.telerik.com. 1. Heuristics 2. Greedy 3. Genetic algorithms 4. Randomization 5. Geometry 2.
Complexity Classes (Ch. 34) The class P: class of problems that can be solved in time that is polynomial in the size of the input, n. if input size is.
Graph Theory Hamilton Paths and Hamilton Circuits.
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.
Mary Beth Kurz, PhD Assistant Professor Department of Industrial Engineering Clemson University Utilizing Condor to Support Genetic Algorithm Design Research.
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.
Researchers: Preet Bola Mike Earnest Kevin Varela-O’Hara Han Zou Advisor: Walter Rusin Data Storage Networks.
A Genetic Solution to the Travelling Salesman Problem Ryan Honig.
Spring 2015 Mathematics in Management Science Traveling Salesman Problem Approximate solutions for TSP NNA, RNN, SEA Greedy Heuristic Algorithms.
Object Oriented Programming Assignment Introduction Dr. Mike Spann
G ENETIC A LGORITHMS Steve Foster. I NTRODUCTION Genetic Algorithms are based on the principals of evolutionary biology in order to find solutions to.
Using traveling salesman problem algorithms for evolutionary tree construction Chantal Korostensky and Gaston H. Gonnet Presentation by: Ben Snider.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
The Generalized Traveling Salesman Problem: A New Genetic Algorithm Approach by John Silberholz, University of Maryland Bruce Golden, University of Maryland.
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Traveling Salesman Problem (TSP)
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
SPANNING TREES Lecture 20 CS2110 – Fall Spanning Trees  Definitions  Minimum spanning trees  3 greedy algorithms (incl. Kruskal’s & Prim’s)
David Luebke 1 2/18/2016 CS 332: Algorithms NP Completeness Continued: Reductions.
Genetic Algorithms and TSP Thomas Jefferson Computer Research Project by Karl Leswing.
Management Science 461 Lecture 7 – Routing (TSP) October 28, 2008.
Chapter 3 Brute Force Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Copyright © 2008 Pearson Education, Inc. Slide 13-1 Unit 13B The Traveling Salesman Problem.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
1 Minimum Spanning Tree: Solving TSP for Metric Graphs using MST Heuristic Soheil Shafiee Shabnam Aboughadareh.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithms and Evolutionary Programming A Brief Overview.
ROBOT NAVIGATION AI Project Asmaa Sehnouni Jasmine Dsouza Supervised by :Dr. Pei Wang.
Hard Problems Some problems are hard to solve.  No polynomial time algorithm is known.  E.g., NP-hard problems such as machine scheduling, bin packing,
Genetic Algorithm (Knapsack Problem)
NP-completeness Ch.34.
Meta Heuristics Team Project
Genetic Algorithms.
Unsolvable Problems December 4, 2017.
Example: Applying EC to the TSP Problem
Chapter 6: Genetic Algorithms
Comparing Genetic Algorithm and Guided Local Search Methods
Genetic Algorithms and TSP
Example: Applying EC to the TSP Problem
Example: Applying EC to the TSP Problem
Heuristic Algorithms via VBA
Heuristic Algorithms via VBA
Heuristic Algorithms via VBA
Presentation transcript:

A Genetic Solution to the Travelling Salesman Problem Ryan Honig

What is the Travelling Salesman Problem? Traveling Salesman Problem (TSP) Definition: Given a set of points, find the shortest path that visits each point exactly once and returns to the starting point.

My Goal Main Things I want to do: Create an algorithm that can find near- optimal solutions for symmetric TSPs. Create a way of heuristically generating a pool Build off of the first algorithm to allow it to find near-optimal solutions for asymmetric TSPs.

What is the Travelling Salesman Problem? (Cont.)‏ Two Types of Problems: Symmetric Asymmetric

What is the Travelling Salesman Problem? (Cont.)‏ Symmetric AB Distance = 100

Genetic Algorithm Genetic algorithm: an algorithm that has a pool of solutions, and will at random pick two solutions and combine them to create a child solution, then a fitness function is used to rank the solutions

Genetic Algorithm (Cont)‏ AABB C C D D EE Parent AParent B

AB C D E Genetic Algorithm (Cont)‏ A A A A A B B B B B Combined Path

Genetic Algorithm (Cont)‏ B AB C D E A A B B Child

Mutations Chance of 1 in 50 to introduce a mutation to the next generation (the child if it replaces a parent, or the first parent)‏ EBFDGAC R1R2 EAGDFBC

Pool Creating Heuristic AB C D E A ABA E AB C AB D A D E AB E

Pool Creating Heuristic (Cont)‏ After testing the two different versions of my program, I found that while the heuristic program was still slightly better than the random-pool program, the time it took to run still did not justify its improvement.

Pool Creating Heuristic (Testing)‏ Average Run Time Average (of 5 runs)‏ Average Run time Average (of 5 runs)‏ Data Set / Best solution Heuristic ProgramRandom Pool Program A280: 2579 ATT48: BAYG29: 1610 BAYS29: 2020 CH130: sec 2.31 sec 1.33 sec 1.86 sec 2.76 sec 5.11 sec 7.32 sec 4.32 sec 5.76 sec 6.43 sec

What is the Travelling Salesman Problem? (Cont.)‏ Asymmetric Travelling Salesman Problem AB Distance = 100 Distance = 200

Asymmetric Travelling Salesman After testing my two versions of the symmetric program, I began work on converting the random-pool program so that it could solve asymmetric travelling salesman problems. Working with a data set that only contains 17 points, data is read in as a text file that contains a grid of distances between points rather than the coordinates of points I can successfully read the data into a matrix, but I am having a hard time converting the actual genetic algorithm

Asymmetric Travelling Salesman (cont)‏ I attempted to use the data to create two sets of absolute coordinates depending on whether you were moving in the clockwise or counter clockwise direction, rather than just having the matrix of relative distances While this was slightly easier to work with than the relative coordinates, I was still not able to get an algorithm that can find solutions to the asymmetric problem sets in the end

The Future of my Program If anyone wants to continue this project, they can: Finish making the genetic algorithm compatible with asymmetric TSPs Make a GUI

THE END Any Questions?