A Hybrid Heuristic for the Traveling Salesman Problem R. Baraglia, J. I. Hildalgo, R. Perego CMPSC 580, Spring 2006.

Slides:



Advertisements
Similar presentations
Genetic Algorithms Chapter 3. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Genetic Algorithms GA Quick Overview Developed: USA in.
Advertisements

Algorithm Design Techniques
Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
Biologically Inspired Computing: Operators for Evolutionary Algorithms
CS6800 Advanced Theory of Computation
Exact and heuristics algorithms
1 APPENDIX A: TSP SOLVER USING GENETIC ALGORITHM.
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Optimizing genetic algorithm strategies for evolving networks Matthew Berryman.
Non-Linear Problems General approach. Non-linear Optimization Many objective functions, tend to be non-linear. Design problems for which the objective.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
Estimation of Distribution Algorithms Ata Kaban School of Computer Science The University of Birmingham.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Introduction to Genetic Algorithms Yonatan Shichel.
Population New Population Selection Crossover and Mutation Insert When the new population is full repeat Generational Algorithm.
Iterative Improvement Algorithms
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
EAs for Combinatorial Optimization Problems BLG 602E.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
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,
Pawel Drozdowski – November Introduction GA basics Solving simple problem GA more advanced topics Solving complex problem Question and Answers.
Universidad de los Andes-CODENSA The Continuous Genetic Algorithm.
Prepared by Barış GÖKÇE 1.  Search Methods  Evolutionary Algorithms (EA)  Characteristics of EAs  Genetic Programming (GP)  Evolutionary Programming.
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Genetic Algorithms by using MapReduce
Ch.12 Machine Learning Genetic Algorithm Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
1 Genetic Algorithms “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations.
The Generational Control Model This is the control model that is traditionally used by GP systems. There are a distinct number of generations performed.
Applying Genetic Algorithm to the Knapsack Problem Qi Su ECE 539 Spring 2001 Course Project.
Genetic Algorithms. Evolutionary Methods Methods inspired by the process of biological evolution. Main ideas: Population of solutions Assign a score or.
A New Evolutionary Approach for the Optimal Communication Spanning Tree Problem Sang-Moon Soak Speaker: 洪嘉涓、陳麗徽、李振宇、黃怡靜.
Evolution Programs (insert catchy subtitle here).
1 Genetic Algorithms and Ant Colony Optimisation.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Genetic Algorithms Czech Technical University in Prague, Faculty of Electrical Engineering Ondřej Vaněk, Agent Technology Center ZUI 2011.
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 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.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Genetic Algorithms. The Basic Genetic Algorithm 1.[Start] Generate random population of n chromosomes (suitable solutions for the problem) 2.[Fitness]
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
N- Queens Solution with Genetic Algorithm By Mohammad A. Ismael.
Genetic Algorithms MITM613 (Intelligent Systems).
The Implementation of Genetic Algorithms to Locate Highest Elevation By Harry Beddo.
Applications of Genetic Algorithms By Harry Beddo 3 rd Quarter.
Genetic Algorithms. Solution Search in Problem Space.
EVOLUTIONARY SYSTEMS AND GENETIC ALGORITHMS NAME: AKSHITKUMAR PATEL STUDENT ID: GRAD POSITION PAPER.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
A MapReduced Based Hybrid Genetic Algorithm Using Island Approach for Solving Large Scale Time Dependent Vehicle Routing Problem Rohit Kondekar BT08CSE053.
Genetic Algorithm (Knapsack Problem)
Using GA’s to Solve Problems
Genetic Algorithms.
An evolutionary approach to solving complex problems
Comparing Genetic Algorithm and Guided Local Search Methods
Genetic Algorithms CPSC 212 Spring 2004.
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Biologically Inspired Computing: Operators for Evolutionary Algorithms
Steady state Selection
GA.
Population Methods.
Presentation transcript:

A Hybrid Heuristic for the Traveling Salesman Problem R. Baraglia, J. I. Hildalgo, R. Perego CMPSC 580, Spring 2006

I didn’t even think “difficultly” was a word.

Genetic Algorithms (from Eiben and Schoenauer)

Simple Example Find the 8-bit vector which maximizes the number of 1’s in the vector – the “MAXONES” problem. Answer is obvious: Can a genetic algorithm find it?

Example (continued) Initialize population (random):

Example (continued) Evaluate fitness: f( ) = 4f( ) = 5 f( ) = 3f( ) = 4 f( ) = 3f( ) = 3

Example (continued) Select genitors (parents): Random, but biased toward fitter individuals: f( ) = 4f( ) = 5 f( ) = 3 f( ) = 4 f( ) = 3f( ) = 3

Example (continued) Variation operators: crossover and mutation

Example (concluded) Evaluate and replace (next generation): (4) (5) (3) (5) (5) (3) Survivors Offspring …Now repeat: select, mate, replace…

Traveling Salesperson Here’s a nice applet from a U. Texas/Arlington course Web site: cse.uta.edu/~cook/ai1/lectures/applets/gatsp /TSP.html

Compact GA (CGA) Instead of maintaining a population of individuals, just keep a description, or model, of the population. Example: A Possible Population: Model: (.6,.8,.1, 0,.6) For each bit position, maintain the probability that some element of the population has a “1” in that position. Example (with 5-bit chromosomes):

Compact GA (continued) Start with uniform random model: (.5,.5,.5,.5,.5) Randomly generate two (or more) individuals according to this probability distribution; find fitness: ; fitness = ; fitness = 1.98

Compact GA (continued) Old model: (.5,.5,.5,.5,.5) ; fitness = 3.21 (winner) ; fitness = 1.98 (loser) Reward 1’s in winner; penalize 1’s in loser: New model: (.6,.5,.4,.6,.5) Repeat the process using the new probabilities

Compact GA (continued) Ideally, process will converge– this is the “solution” found by the CGA: (.5,.5,.5,.5,.5) (.6,.5,.4,.6,.5) (.7,.4,.3,.6,.5) … (1, 0, 0, 1, 1) [“solution”]

Compact GA for TSP Save a description of population in the form of a probability matrix. Example: Population: 1,4,5,2,3 1,2,5,3,4 1,5,3,4,2 1,3,5,2, Probability of edge (i,j):

CGA for TSP (continued) Constructing a new tour: Pick random start city: (4, _ Pick another city: 1 Decide whether to include 1 with a 75% probability: YES Probability of edge (i,j):

CGA for TSP (continued) (4, 1, _ Pick another city: 5 Decide whether to include 1 with a 25% probability: NO So try another city, … etc Probability of edge (i,j):

CGA for TSP (continued) Probability of edge (i,j): Constructing a new tour: Process might get “stuck” (repeated “NO” results). In this case, pick the city with highest probability of being connected to most recently added city: (4,1,3,5,…

Hybrid Approach Combine Genetic Algorithm (problem- independent method) with heuristic specifically designed for TSP. Make one “genetic step”, then improve the solution using the heuristic.

A Simple Heuristic for Improving TSP Solutions 2-opt: look at all possible pairs of edges in the tour, see if tour length can be improved by reordering cities as follows. Repeat until no more improvement is possible: (Can have 3-opt, 4-opt, etc.; more expensive)

Slides not completed yet