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
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.
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
1 MERLIN A polynomial solution for the Traveling Salesman Problem Dr. Joachim Mertz, 2005.
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Algorithm Strategies Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
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.
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.
Non-Conservative Cost Bound Increases in IDA* Doug Demyen.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
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.
EE4E,M.Sc. C++ Programming Assignment Introduction.
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.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Graph Theory Hamilton Paths and Hamilton Circuits.
A Genetic Solution to the Travelling Salesman Problem Ryan Honig.
Viviane Gascon François Meunier UQTR INFORMS Healthcare
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.
Design of a real time strategy game with a genetic AI By Bharat Ponnaluri.
Researchers: Preet Bola Mike Earnest Kevin Varela-O’Hara Han Zou Advisor: Walter Rusin Data Storage Networks.
PROJECT LOG MOLLY ATKINSON. 10/09 Today, I got to grips with the course outline, which included creating the relevant folders for all my future publications,
Evolutionary Art with Multiple Expression Programming By Quentin Freeman.
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.
Evolution Programs (insert catchy subtitle here).
The Generalized Traveling Salesman Problem: A New Genetic Algorithm Approach by John Silberholz, University of Maryland Bruce Golden, University of Maryland.
1 Genetic Algorithms and Ant Colony Optimisation.
Applications of Genetic Algorithms TJHSST Computer Systems Lab By Mary Linnell.
Optimizing Pheromone Modification for Dynamic Ant Algorithms Ryan Ward TJHSST Computer Systems Lab 2006/2007 Testing To test the relative effectiveness.
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.
Improving the Genetic Algorithm Performance in Aerial Spray Deposition Management University of Georgia L. Wu, W.D. Potter, K. Rasheed USDA Forest Service.
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.
 In this packet we will look at:  The meaning of acceleration  How acceleration is related to velocity and time  2 distinct types acceleration  A.
SPANNING TREES Lecture 21 CS2110 – Fall Nate Foster is out of town. NO 3-4pm office hours today!
David Luebke 1 2/18/2016 CS 332: Algorithms NP Completeness Continued: Reductions.
Genetic Algorithms MITM613 (Intelligent Systems).
Genetic Algorithms and TSP Thomas Jefferson Computer Research Project by Karl Leswing.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Efficient Map Path Finding with Realistic Conditions Third Quarter Version Olex Ponomarenko.
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.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
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,
NP-completeness Ch.34.
Genetic Algorithms.
Routing Through Networks - 1
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
Applications of Genetic Algorithms TJHSST Computer Systems Lab
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.

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

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

My Goal Three Things I want to do: 1.Create an algorithm that can find near- optimal solutions for symmetric TSPs. 2.Build off of the first algorithm to allow it to find near-optimal solutions for asymmetric TSPs. 3.Create a graphic Interface to run the algorithms and visualize the set of points.

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

What I’ve done 3rd quarter First ~two weeks of the quarter spent trying to optimize my pool initializing heuristic Did some testing with the current heuristic program and the original random-pool program Worked on converting the a copy of my random pool program so that it would read in asymmetric traveling salesman problems and find near optimal solutions to them

Pool Creating Heuristic (Cont)‏ Last Quarter, I tested the program with the heuristic to initialize the pool (before my optimizing) against the program that has a random pool, and although I found the results to be slightly better, it ran a lot slower. This Quarter, I once again tested the two different versions of my program, but after I had worked for a bit on optimizing the heuristic. 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 3.03 sec 4.71 sec 2.42 sec 2.81 sec 4.54 sec

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

Asymmetric Travelling Salesman After a bit of testing my two programs, 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 the distances between points rather than the coordinates of points Currently, I can successfully read in the data, and I have converted many of the functions in my program so that they can perform on asymmetric data, but I am having a hard time converting the actual genetic algorithm Hopefully I will be able to get it working by early next quarter.

The Future of my Program Finish making the genetic algorithm compatible with asymmetric TSPs Make a GUI

Plans for a GUI Allow user to input the name of the file containing the set of points Display the set of points in a graphical representation, along with the path that the algorithm will finds for it

THE END Any Questions?