Ant colonies for the traveling salesman problem Eliran Natan Seminar in Bioinformatics (236818) – Spring 2013 Computer Science Department Technion - Israel.

Slides:



Advertisements
Similar presentations
Computational Intelligence Winter Term 2011/12 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering (LS 11) Fakultät für Informatik TU Dortmund.
Advertisements

Computational Intelligence Winter Term 2013/14 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering (LS 11) Fakultät für Informatik TU Dortmund.
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.
VEHICLE ROUTING PROBLEM
Swarm algorithms COMP308. Swarming – The Definition aggregation of similar animals, generally cruising in the same direction Termites swarm to build colonies.
Ant Colony Optimization. Brief introduction to ACO Ant colony optimization = ACO. Ants are capable of remarkably efficient discovery of short paths during.
Algorithm Strategies Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Biologically Inspired Computation Lecture 10: Ant Colony Optimisation.
Anti-pheromone as a Tool for Better Exploration of Search Space by James Montgomery and Marcus Randall, Bond University, Australia.
Ant Colony Optimization Presenter: Chih-Yuan Chou.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Path Planning with the humanoid robot iCub Semester Project 2008 Pantelis Zotos Supervisor: Sarah Degallier Biologically Inspired Robotics Group (BIRG)
Ant Colony Optimization Optimisation Methods. Overview.
Ant Colony Optimization Algorithms for the Traveling Salesman Problem ACO Kristie Simpson EE536: Advanced Artificial Intelligence Montana State.
D Nagesh Kumar, IIScOptimization Methods: M1L4 1 Introduction and Basic Concepts Classical and Advanced Techniques for Optimization.
Presented by: Martyna Kowalczyk CSCI 658
When Ants Attack! Ant Algorithms for Subset Selection Problems Derek BridgeFinbarr TarrantChristine Solnon University College CorkUniversity of Lyon.
Ant Colony Optimization: an introduction
Ant Colony Optimization (ACO): Applications to Scheduling
1 IE 607 Heuristic Optimization Ant Colony Optimization.
FORS 8450 Advanced Forest Planning Lecture 19 Ant Colony Optimization.
Ant colony optimization algorithms Mykulska Eugenia
L/O/G/O Ant Colony Optimization M1 : Cecile Chu.
Part B Ants (Natural and Artificial) 8/25/ Real Ants (especially the black garden ant, Lasius niger)
Swarm intelligence Self-organization in nature and how we can learn from it.
CSM6120 Introduction to Intelligent Systems Other evolutionary algorithms.
Genetic Algorithms and Ant Colony Optimisation
EE4E,M.Sc. C++ Programming Assignment Introduction.
Scott Perryman Jordan Williams.  NP-completeness is a class of unsolved decision problems in Computer Science.  A decision problem is a YES or NO answer.
Swarm Computing Applications in Software Engineering By Chaitanya.
Swarm Intelligence 虞台文.
G5BAIM Artificial Intelligence Methods Graham Kendall Ant Algorithms.
Ant Colony Optimization. Summer 2010: Dr. M. Ameer Ali Ant Colony Optimization.
Ant Colony Optimization Theresa Meggie Barker von Haartman IE 516 Spring 2005.
Object Oriented Programming Assignment Introduction Dr. Mike Spann
Biologically Inspired Computation Ant Colony Optimisation.
Discrete optimization of trusses using ant colony metaphor Saurabh Samdani, Vinay Belambe, B.Tech Students, Indian Institute Of Technology Guwahati, Guwahati.
The Application of The Improved Hybrid Ant Colony Algorithm in Vehicle Routing Optimization Problem International Conference on Future Computer and Communication,
Inga ZILINSKIENE a, and Saulius PREIDYS a a Institute of Mathematics and Informatics, Vilnius University.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Optimizing Pheromone Modification for Dynamic Ant Algorithms Ryan Ward TJHSST Computer Systems Lab 2006/2007 Testing To test the relative effectiveness.
Ant colony optimization. HISTORY introduced by Marco Dorigo (MILAN,ITALY) in his doctoral thesis in 1992 Using to solve traveling salesman problem(TSP).traveling.
Combinatorial Optimization Chapter 8, Essentials of Metaheuristics, 2013 Spring, 2014 Metaheuristics Byung-Hyun Ha R2.
Ant Colony Optimization Quadratic Assignment Problem Hernan AGUIRRE, Adel BEN HAJ YEDDER, Andre DIAS and Pascalis RAPTIS Problem Leader: Marco Dorigo Team.
Technical Seminar Presentation Presented By:- Prasanna Kumar Misra(EI ) Under the guidance of Ms. Suchilipi Nepak Presented By Prasanna.
Ant Colony Optimization 22c: 145, Chapter 12. Outline Introduction (Swarm intelligence) Natural behavior of ants First Algorithm: Ant System Improvements.
5 Fundamentals of Ant Colony Search Algorithms Yong-Hua Song, Haiyan Lu, Kwang Y. Lee, and I. K. Yu.
Ant colonies for the travelling salesman problem Macro Dorigo, Luca Maria Gambardella 資工三 李明杰.
Ant Colony Optimization Andriy Baranov
The Ant System Optimization by a colony of cooperating agents.
Biologically Inspired Computation Ant Colony Optimisation.
Path Planning Based on Ant Colony Algorithm and Distributed Local Navigation for Multi-Robot Systems International Conference on Mechatronics and Automation.
What is Ant Colony Optimization?
B.Ombuki-Berman1 Swarm Intelligence Ant-based algorithms Ref: Various Internet resources, books, journal papers (see assignment 3 references)
Name : Mamatha J M Seminar guide: Mr. Kemparaju. GRID COMPUTING.
Ant Colony Optimisation. Emergent Problem Solving in Lasius Niger ants, For Lasius Niger ants, [Franks, 89] observed: –regulation of nest temperature.
Exhaustive search Exhaustive search is simply a brute- force approach to combinatorial problems. It suggests generating each and every element of the problem.
Ant Colony Optimization
Scientific Research Group in Egypt (SRGE)
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Ant colonies for traveling salesman problem
Genetic Algorithms and TSP
Computational Intelligence
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Ant Colony Optimization
traveling salesman problem
Ants and the TSP.
Algorithms and data structures
Computational Intelligence
Discrete Optimization
Presentation transcript:

Ant colonies for the traveling salesman problem Eliran Natan Seminar in Bioinformatics (236818) – Spring 2013 Computer Science Department Technion - Israel Institute of Technology

Content  Pheromone trails  Ant Colony Optimization algorithms  Travelling Salesman Problem And its ACS solution

Content  Pheromone trails  Ant Colony Optimization algorithms  Travelling Salesman Problem And its ACS solution

Content  Pheromone trails  Ant Colony Optimization algorithms  Travelling Salesman Problem And its ACS solution

Content  Pheromone trails  Ant Colony Optimization algorithms  Travelling Salesman Problem And its ACS solution

Pheromone trails It is well known that the primary means for ants to form and maintain the line is a pheromone trail. Ants deposit a certain amount of pheromone while walking, and each ant probabilistically prefers to follow a direction rich in pheromone.

Pheromone trails This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path. Shortest path around an obstacle Let us consider the following scenario: Ants are moving on a straight line that connects a food source to their nest.

Pheromone trails Shortest path around an obstacle An obstacle appears on the path. This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path.

Pheromone trails Shortest path around an obstacle Those ants which are just in front of the obstacle cannot continue to follow the pheromone trail and therefore they have to choose between turning right or left. In this situation we can expect half the ants to choose to turn right and the other half to turn left. This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path.

Pheromone trails Shortest path around an obstacle Those ants which choose, by chance, the shorter path around the obstacle will more rapidly reconstitute the interrupted pheromone trail compared to those which choose the longer path. Thus, the shorter path will receive a greater amount of pheromone per time unit and in turn a larger number of ants will choose the shorter path. This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path.

Pheromone trails Shortest path around an obstacle Shortest path is being obtained. This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path.

Pheromone trails Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it. Shortest path from the nest to the food source Let us describe the algorithm: A small amount of ants travel randomly around the nest. N

Pheromone trails Shortest path from the nest to the food source One of the ants find food source. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.

Pheromone trails Shortest path from the nest to the food source When ant finds food, it returns to the nest while laying down pheromones trail. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.

Pheromone trails Shortest path from the nest to the food source When other ants find a pheromone trail, they are likely not to keep travelling at random, but to instead follow the trail. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.

Pheromone trails Shortest path from the nest to the food source If an ant eventually find food by following a pheromone trail, it returning to the nest while reinforcing the trail with more pheromones. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.

Pheromone trails Shortest path from the nest to the food source Due to their stochastic behavior, some ants are not following the pheromone trails, and thus uncover more possible paths. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.

Pheromone trails Shortest path from the nest to the food source Over time, however, the pheromones trails starts to evaporate, thus reducing its attractive strength. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.

Pheromone trails Shortest path from the nest to the food source Shortest path is being obtained. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.

Pheromone trails Shortest path from the nest to the food source An Intuitive proof of correctness Pheromone evaporation also has the advantage of avoiding the convergence to a locally optimal solution. If there were no evaporation at all, all paths chosen by the first ants would tend to be excessively attractive to the following ones. In that case, the exploration of the solution space would be constrained.  The more time it takes for an ant to travel down the path and back again, the more time the pheromones have to evaporate. Thus,  A short path, by comparison, get marched over more frequently, and thus its pheromone density becomes higher on shorter paths than longer ones. Thus, when one ant finds a short path from the colony to a food source, other ants are more likely to follow that path, and positive feedback eventually leads all the ants following a single path.

Ant Colony Optimization (ACO) studies artificial systems that take inspiration from the behavior of real ant colonies and which are used to solve discrete optimization problems. Ant Colony Optimization algorithms Some applications: Set partition problem Deciding whether a given multiset of positive integers can be partitioned into two subsets A and B such that the sum of the numbers in A equals the sum of the numbers in B.

Ant Colony Optimization algorithms Ant Colony Optimization (ACO) studies artificial systems that take inspiration from the behavior of real ant colonies and which are used to solve discrete optimization problems. Some applications: Job – Shop problems Given a number of jobs have to be done and every job consists of using a number of machines for a certain amount of time. Find the best planning to do all the jobs on all the different machines in the shortest period of time.

Ant Colony Optimization algorithms Ant Colony Optimization (ACO) studies artificial systems that take inspiration from the behavior of real ant colonies and which are used to solve discrete optimization problems. Some applications: Multiple knapsack problem Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to a given limit and the total value is as large as possible.

Ant Colony Optimization algorithms Ant Colony Optimization (ACO) studies artificial systems that take inspiration from the behavior of real ant colonies and which are used to solve discrete optimization problems. Some applications: Protein folding The process by which a protein structure assumes its functional shape or conformation.

Ant Colony Optimization algorithms Ant Colony Optimization (ACO) studies artificial systems that take inspiration from the behavior of real ant colonies and which are used to solve discrete optimization problems. Some applications: Data mining the computational process of discovering patterns in large data sets.

Ant Colony Optimization algorithms Ant Colony Optimization (ACO) studies artificial systems that take inspiration from the behavior of real ant colonies and which are used to solve discrete optimization problems. Some applications: Travelling salesman problem Given a list of cities and the distances between each pair of cities, determine the shortest possible route that visits each city exactly once and returns to the origin city.

Travelling Salesman Problem Definitions For a complete undirected weighted graphs Problem Complexity class NP–Hard

Travelling Salesman Problem Algorithms for deterministic solution For an undirected complete weighted graphs  Brute force search  Dynamic programming  Greedy algorithm

Travelling Salesman Problem ACS solution

Travelling Salesman Problem ACS Algorithm description ACS solution

Travelling Salesman Problem ACS Algorithm description ACS solution

Travelling Salesman Problem ACS Algorithm description ACS solution

Travelling Salesman Problem ACS Algorithm description ACS solution

Travelling Salesman Problem ACS Algorithm description ACS solution

Travelling Salesman Problem ACS Algorithm description ACS solution Every time an edge is chosen by an ant, its amount of pheromone is changed according to the following formula:  Local updating is intended to avoid a very strong edge being chosen by all the ants.  Local trail updating is also motivated by trail evaporation in real ants. While traveling, each ant applies the local update rule for each visited edge.

Travelling Salesman Problem ACS Algorithm description ACS solution Update the weight of each edge that belongs to the shortest tour, according to the following formula:  Global updating is intended to reward edges belonging to shorter tours.  The amount of weight deposited on each edge is inversely proportional to the length of the tour: The shorter the tour the greater the amount of weight deposited on edges. While traveling, each ant applies the local update rule for each visited edge. Once ants have completed their tours, apply the global update rule.

Travelling Salesman Problem ACS Algorithm description ACS solution  Global updating is intended to emulate the property of differential pheromone trail accumulation, which in the case of real ants was due to the interplay between length of the path and continuity of time. Update the weight of each edge that belongs to the shortest tour, according to the following formula: While traveling, each ant applies the local update rule for each visited edge. Once ants have completed their tours, apply the global update rule.

Travelling Salesman Problem ACS Algorithm description ACS solution While traveling, each ant applies the local update rule for each visited edge. Once ants have completed their tours, apply the global update rule.

Travelling Salesman Problem ACS Algorithm description ACS solution While traveling, each ant applies the local update rule for each visited edge. Once ants have completed their tours, apply the global update rule. Return shortest tour.

Travelling Salesman Problem For an undirected complete weighted graphs Algorithm – Initialization A B C D E

Travelling Salesman Problem For an undirected complete weighted graphs Algorithm – Initialization Place each ant in a randomly chosen city. A B C D E

A B C D E Travelling Salesman Problem For an undirected complete weighted graphs Algorithm – Step 1

A B C D E Travelling Salesman Problem For an undirected complete weighted graphs Algorithm – Step 2 Apply the Global Update Rule.

Travelling Salesman Problem For an undirected complete weighted graphs Comparison with other algorithms Comparison of ACS tour length on a TSP problem with 50 vertexes with the following nature-inspired algorithms:  SA – Simulated Annealing  EN – Elastic Net  SOM – Self Organizing Map  FI – Farthest Insertion Heuristic

ACS SA EN SOM FI Best Travelling Salesman Problem For an undirected complete weighted graphs Comparison with other algorithms Test A

Travelling Salesman Problem For an undirected complete weighted graphs Comparison with other algorithms ACS SA EN SOM FI Test B Best

Travelling Salesman Problem For an undirected complete weighted graphs Comparison with other algorithms ACS SA EN SOM FI Test C Best

Travelling Salesman Problem For an undirected complete weighted graphs Comparison with other algorithms ACS SA EN SOM FI Test D Best

Travelling Salesman Problem For an undirected complete weighted graphs Comparison with other algorithms ACS SA EN SOM FI Test E Best

Travelling Salesman Problem For an undirected complete weighted graphs Number of ants

Travelling Salesman Problem For an undirected complete weighted graphs An Intuitive proof of correctness  We can interpret the ant colony as a reinforcement learning system, in which reinforcements modify the strength (Pheromone trail) of connections between vertexes.  Each ant has two options: Exploit the experience accumulated by the ant colony in the form of pheromone trail (pheromone trail will tend to grow on those edges which belong to short tours, making them more desirable).

Reference Marco Dorigo IRIDIA, Université Libre de Bruxelles, Avenue Franklin Roosevelt 50, CP 194/6, 1050 Bruxelles, Belgium Luca Maria Gambardella IDSIA, Corso Elvezia 36, 6900 Lugano, Switzerland Marco Dorigo is a Research Associate with the FNRS. Luca Gambardella is Research Director at IDSIA. This research has been funded by the Swiss National Science Fund, contract 21– titled “Cooperation and learning for combinatorial optimization”. “Ant colonies for the traveling salesman problem” Université Libre de Bruxelles, Belgium.