Implementation of Travelling Salesman Problem Using ant Colony Optimization

Similar documents
Ant Colony Optimization: an introduction. Daniel Chivilikhin

Sensitive Ant Model for Combinatorial Optimization

Capacitor Placement for Economical Electrical Systems using Ant Colony Search Algorithm

Intuitionistic Fuzzy Estimation of the Ant Methodology

Self-Adaptive Ant Colony System for the Traveling Salesman Problem

Outline. Ant Colony Optimization. Outline. Swarm Intelligence DM812 METAHEURISTICS. 1. Ant Colony Optimization Context Inspiration from Nature

A Note on the Parameter of Evaporation in the Ant Colony Optimization Algorithm

Swarm Intelligence Traveling Salesman Problem and Ant System

Ant Algorithms. Ant Algorithms. Ant Algorithms. Ant Algorithms. G5BAIM Artificial Intelligence Methods. Finally. Ant Algorithms.

3D HP Protein Folding Problem using Ant Algorithm

Swarm intelligence: Ant Colony Optimisation

Traffic Signal Control with Swarm Intelligence

New approaches to evaporation in ant colony optimization algorithms

Solving the Homogeneous Probabilistic Traveling Salesman Problem by the ACO Metaheuristic

Natural Computing. Lecture 11. Michael Herrmann phone: Informatics Forum /10/2011 ACO II

Travelling Salesman Problem

Metaheuristics and Local Search

ARTIFICIAL INTELLIGENCE

Metaheuristics and Local Search. Discrete optimization problems. Solution approaches

Algorithms and Complexity theory

Computational Intelligence Methods

LECTURE 1: INTRODUCTION

TRAVELING SALESMAN PROBLEM WITH TIME WINDOWS (TSPTW)

Available online at ScienceDirect. Procedia Computer Science 20 (2013 ) 90 95

Part B" Ants (Natural and Artificial)! Langton s Vants" (Virtual Ants)! Vants! Example! Time Reversibility!

Hamiltonian(t) - An Ant-Inspired Heuristic for Recognizing Hamiltonian Graphs

Applied Integer Programming: Modeling and Solution

Motivation, Basic Concepts, Basic Methods, Travelling Salesperson Problem (TSP), Algorithms

Research Article Ant Colony Search Algorithm for Optimal Generators Startup during Power System Restoration

Mining Spatial Trends by a Colony of Cooperative Ant Agents

8.3 Hamiltonian Paths and Circuits

A reactive framework for Ant Colony Optimization

2 Notation and Preliminaries

Artificial Intelligence Methods (G5BAIM) - Examination

Genetic Algorithm approach to Solve Shortest Path and Travelling Salesman Problem

Updating ACO Pheromones Using Stochastic Gradient Ascent and Cross-Entropy Methods

Convergence of Ant Colony Optimization on First-Order Deceptive Systems

7.1 Basis for Boltzmann machine. 7. Boltzmann machines

Data Structures in Java

An ACO Algorithm for the Most Probable Explanation Problem

The traveling salesman problem

An Enhanced Aggregation Pheromone System for Real-Parameter Optimization in the ACO Metaphor

Algorithm Design Strategies V

ANT colony optimization (ACO) [2] is a metaheuristic inspired

Deterministic Nonlinear Modeling of Ant Algorithm with Logistic Multi-Agent System

Overview. Optimization. Easy optimization problems. Monte Carlo for Optimization. 1. Survey MC ideas for optimization: (a) Multistart

The Application of the Ant Colony Decision Rule Algorithm on Distributed Data Mining

Unit 1A: Computational Complexity

Improving convergence of combinatorial optimization meta-heuristic algorithms

Mining Spatial Trends by a Colony of Cooperative Ant Agents

A Survey on Travelling Salesman Problem

Ant Colony Optimization for Multi-objective Optimization Problems

An ant colony algorithm for multiple sequence alignment in bioinformatics

Gas Turbine LQR, INTEGRAL Controllers and Optimal PID Tuning by Ant Colony Optimization Comparative Study

Chapter 3: Discrete Optimization Integer Programming

Check off these skills when you feel that you have mastered them. Write in your own words the definition of a Hamiltonian circuit.

Runtime Analysis of a Simple Ant Colony Optimization Algorithm

Mauro Birattari, Prasanna Balaprakash, and Marco Dorigo

Part III: Traveling salesman problems

Optimizing Roadside Unit (RSU) Placement in Vehicular CPS

Firefly algorithm in optimization of queueing systems

Bounds on the Traveling Salesman Problem

A MULTIDIRECTIONAL MODIFIED PHYSARUM SOLVER FOR DISCRETE DECISION MAKING

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University

An ant colony algorithm applied to lay-up optimization of laminated composite plates

Chapter 3: Discrete Optimization Integer Programming

Solving the Travelling Salesman Problem Using Quantum Computing

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

CS/COE

AN ANT APPROACH FOR STRUCTURED QUADRATIC ASSIGNMENT PROBLEMS

An Improved Ant Colony Optimization Algorithm for Clustering Proteins in Protein Interaction Network

Ant Colony Optimization. Prepared by: Ahmad Elshamli, Daniel Asmar, Fadi Elmasri

The Probabilistic Pickup and Delivery Problem

1 Heuristics for the Traveling Salesman Problem

Collective Intelligence for Optimal Power Flow Solution Using Ant Colony Optimization

A new restart procedure for combinatorial optimization and its convergence

A Short Convergence Proof for a Class of Ant Colony Optimization Algorithms

CHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY. E. Amaldi Foundations of Operations Research Politecnico di Milano 1

Hamiltonian Cycle Problem and Cross Entropy. Passing Through the Nodes by Learning

NP and Computational Intractability

A Gossip Algorithm for Heterogeneous Multi-Vehicle Routing Problems

Asymmetric Traveling Salesman Problem (ATSP): Models

Convergence Control in ACO

New Integer Programming Formulations of the Generalized Travelling Salesman Problem

Worst Case Performance of Approximation Algorithm for Asymmetric TSP

Meta heuristic algorithms for parallel identical machines scheduling problem with weighted late work criterion and common due date

depending only on local relations. All cells use the same updating rule, Time advances in discrete steps. All cells update synchronously.

16.410/413 Principles of Autonomy and Decision Making

Part III: Traveling salesman problems

Australian Journal of Basic and Applied Sciences. Parametric Modelling of Flexible Plate Structures Using Ant Colony Optimization

D1 Discrete Mathematics The Travelling Salesperson problem. The Nearest Neighbour Algorithm The Lower Bound Algorithm The Tour Improvement Algorithm

Chapter 17: Ant Algorithms

Traveling Salesman Problem

July 18, Approximation Algorithms (Travelling Salesman Problem)

NP-complete problems. CSE 101: Design and Analysis of Algorithms Lecture 20

Meta-heuristic ant colony optimization technique to forecast the amount of summer monsoon rainfall: skill comparison with Markov chain model

A Comparative Study Of Optimization Techniques For Capacitor Location In Electrical Distribution Systems

arxiv: v2 [cs.ds] 11 Oct 2017

Ant Colony Optimization for Resource-Constrained Project Scheduling

Lecture 4: NP and computational intractability

Transcription:

RESEARCH ARTICLE OPEN ACCESS Implementation of Travelling Salesman Problem Using ant Colony Optimization Gaurav Singh, Rashi Mehta, Sonigoswami, Sapna Katiyar* ABES Institute of Technology, NH-24, Vay Nagar, Ghaziabad (UP) 201009, ABSTRACT Within the Artificial Intelligence community, there is great need for fast and accurate traversal algorithms, specifically those that find a path from a start to goal with minimum cost. Cost can be distance, time, money, energy, etc. Travelling salesman problem (TSP) is a combinatorial optimization problem. TSP is the most intensively studied problem in the area of optimization. Ant colony optimization (ACO) is a population-based metaheuristic that can be used to find approximate solutions to difficult optimization problems. There have been many efforts in the past to provide time efficient solutions for the problem, both exact and approximate. This paper demonstrates the implementation of TSP using ant colony optimization(aco).the solution to this problem enjoys wide applicability in a variety of practical fields.tsp in its purest form has several applications such as planning, logistics, and manufacture of microchips, military and traffic. KEYWORDS: Ant colony optimization, Metaheuristic, Travelling salesman Problem, pheromone update, Hamiltonian cycles I. LITERATURE REVIEW: The Travelling Salesman Problem (TSP) is a problem in combinatorial optimization. Given a list of cities and their pair wise distances, the task is to find a shortest possible tour that visits each city exactly once. It is one of the most intensively studied problems in optimization. The problem was first defined in the 1800s by the Irish mathematician W.R. Hamilton and the British mathematician Thomas Kirkman.It was, however, first formulated as a mathematical problem only in 1930 by Karl Menger.The name Travelling Salesman Problem was introduced by American HasslerWhiteney. The origin of TSP lies with Hamilton's Icosian Game, which was a recreational puzzle based on finding a Hamiltonian cycle.richard M. Karp showed in 1972 that the Hamiltonian cycle problem was NP-complete, which implies the NPhardness of TSP. This supplied a mathematical explanation for the apparent computational difficulty of finding optimal tours. Travelling Salesman Problem can be analyzed using traditional techniques like Branch-Bound algorithm. II. INTRODUCTION: The travelling salesman problem (TSP) is the problem of finding a shortest closed tour which visits all the cities in a given set. Travelling salesman problem (TSP) is one of the well-known and extensively studied problems indiscrete or combinational optimization and asks for the shortest roundtrip of minimal total cost visiting each given city (node) exactly once. Now days these traditional methods are not adaptive to real time. So as to make it dynamic, artificial intelligence techniques like Genetic algorithm, Neural Network, Ant Colony Optimization(ACO) and Particle Swarm Intelligence can be used.ant colony optimization (ACO) belongs to the group of meta heuristic methods. The proposed approach exploits a number of ants, which move on the paths driven by the local variation.this research paper demonstrates the use of ant colony optimizationtechnique in The Travelling Salesman Problem. It is simulated in MATLAB and results have been discussed accordingly. A. TRAVELLING SALESMAN PROBLEM TSP is an NP-hard problem and it is so easy to describe and so difficult to solve. The definition of a TSP is: given N cities, if a salesman starting from his home city is to visit each city exactly once and then return home, find the order of a tour such that the total distances (cost) travelled is minimum.the data consist of weights assigned to the edges of a finite complete graph, and the objective is to find a Hamiltonian cycle, a cycle passing through all the vertices, of the graph while having the minimum total weight. In the TSP context, Hamiltonian cycles are commonly called tours. 63 P a g e

Fig. 1. The tour with A=>B =>C =>E =>D => A is the optimal tour Different instances of the TSP are also divided into different classes based on the arrangement of distance between the cities or the type of graph in concern. In the Symmetric TSP, the distance between two cities is the same in each direction, forming an undirected graph.this symmetry halves the number of possible solutions. In the Asymmetric TSP, paths may not exist in both directions or the distances might be different, forming a directed graph.hence, the number of tours in the ATSP and STSP on n vertices (cities) is (n-1)! and (n-1)!/2, respectively. A complete weighted graph G= (N, E) can be used to represent a TSP, where N is the set of n cities and E is the set of edges (paths) fully connecting all cities. Each edge (i,j) E is assigned a cost d, which is the distance between cities i and j. dcan be defined in the Euclidean space and is given as follows: t d = (xi xj) 2 + (yi yj) 2 The most popular practical application of TSP are regular distribution of goods or resources, finding of the shortest of costumer servicing route, planning bus lines etc., but also in the areas that have nothing to do with travel routes. B.ANT COLONY OPTIMIZATION The base of ACO is to simulate the real behaviour of ants in nature. An ant colony provides indirect communication with the help of pheromones, which ants excrete. Pheromones are chemical substances which attract other ants searching for food. The attractiveness of a given path depends on the quantity of pheromones that the ant feels. Pheromones excretion is governed by some rules and has not always the same intensity therefore changes with time. The quantity of pheromones depends on the attractiveness of the route. The use of more attractive route ensures that the ant excrete more pheromones on its way back and so that path is more also attractive for other ants. The characteristic of pheromones is evaporation. C.ACO MODEL Ant System was first introduced and applied to TSP.Initially, m artificial ants are placed on randomly selected cities. At each time step they move to new cities and modify the pheromone trail on the edges used this is known as local trail updating. When all the ants have completed a tour the ant that made the shortest tour modifies the edges belonging to its tour known as global trail updating by adding an amount of pheromone trail that is inversely proportional to the tour length. An ant k currently at city i choose to move to city j by applying the following probabilistic transition rule: The probability rule between two nodes i and j, called Pseudo-Random-Proportional Action Choice Rule, depends on two factors: the heuristic and metaheuristic. p [ ] hs [ [ ] ] [ ] -----------(1) where τ is the pheromone, η is the inverse of the distance between the two cities, q is a random variable uniformly distributed over [0, 1], q0 is a tunable parameter in the interval [0, 1], and J belongs to the candidate list and is selected based on the above probabilistic rule. Each ant modifies the environment in two different ways, Dorigo (1999)[4]: A. Local trail updating: As the agent moves between cities it updates the amount of pheromone on the edge by the eq (4): ( t) (1 ). ( t 1). 0--------(2) where, ρ is the evaporation constant. The value τ 0 is the initial value of pheromone trails and can be calculated as 1 0 ( n. Lnn) -----------(3) where, n is the number of cities and L the length of the tour produced by one of the construction heuristics. B. Global trail updating: When all agents have completed a tour the agent that finds the shortest route updates the edges in its path using the following equation: ---------(4) ( t) (1 ). ( t 1) L where, L + is the length of the best tour generated by one of the agents. Fig. 2 shows a pseudo code of the general procedure in an Ant Colony Optimization metaheuristic. 64 P a g e

Set parameters, initialize pheromone trails While termination conditions not met do Construct Ant Solutions Apply Local Search (optional) Update Pheromones end while III. RESULTS A. By considering five cities and five ants INPUT(DISTANCE VS CITIES) Fig.3 shows the distances between various cities.this graph represents number of cities by X AXIS and distances between cities by Y AXIS. This research paper has considered that number of ants is equal to the number of cities. Fig.4 Fig.3 OUTPUT1 (OPTIMAL TOURS VS ITERATIONS) Fig.4 has been plotted by considering no.of ants and no. of cities equals to 5.Here X-AXIS represents the no.of iterations and Y-AXIS represents optimal tours for each iterations. This graph has been plotted by considering no.of iterations equals to 10. Since in maximum iterations the output is 31,so this paper has considered optimal output equals to 31. OUTPUT2(BEST TOUR) Fig.5 shows the minimum path length having considered between various cities. So the output, that is optimal tour is from city2 - city3 - city5 - city4 - city 1. Fig.5 TABLE-1 No of No of Iterat Best Tour Best Ants Cities ions Length 10 10 1 [2 3 5 4 1] 32 20 20 2 [2 3 5 4 1] 31 30 30 3 [2 3 5 4 1] 31 40 40 4 [2 3 5 4 1] 31 50 50 5 [2 3 5 4 1] 31 60 60 6 [2 3 5 4 1] 31 70 70 7 [2 3 5 4 1] 31 80 80 8 [2 3 5 4 1] 31 90 90 9 [2 3 5 4 1] 31 100 100 10 [2 3 5 4 1] 31 65 P a g e

B. By considering With eight Citiesand eight ants OUTPUT 2: (BEST TOUR) 9 A 7 6 3 10 C 5 4 D 3 8 2 4 2 3 5 H 3 3 4 5 F B E G INPUT:(DISTANCE VS CITIES) Fig.8 Fig.6 OUTPUT 1: (OPTIMAL TOURS VS ITERATIONS) Fig.7 IV. CONCLUSION This paper presents an approach for solving travelling salesman problem based on ant colony algorithm.it can be concluded that the quality of solutions depends on the number of ants. The lower number of ants allows the individual to change the path much faster. The higher number of ants in population causes the higher accumulation of pheromone on edges, and thus an individual keeps the path with higher concentration of pheromone with a high probability. The great advantage over the use of exact methods is that ACO algorithm provides relatively good results by a comparatively low number of iterations, and is therefore able to find an acceptable solution in a short time interval. Therefore it is useable for solving problems occurring in practical applications. The experimental results and performance comparison showed that the proposed system is more useful in terms of convergence speed and the ability to finding better solutions. REFERENCES [1] Lee Po-wing, Integrated modern-heuristic and B/B approach for the classical traveling salesman problem on a parallel computer, 2000 [2] M. Dorigo and T. Stützle, Ant Colony Optimization, Cambridge: MIT Press, 2004. [3] C-MihaelaPintea, D. Dumitrescu, Improving Ant System Using A Local Updating Rule, Proceedings of the Seventh International Symposium and Numeric Algorithms for Scientific Computing (SYNASC 05), IEEE 2005. 66 P a g e

[4] H.-B. Duan, Ant Colony Algorithms: Theory and Applications. Being: Science Press, 2005. [5] K. S. Hung, S.F. Su, S. J. Lee, Improving Ant Colony Optimization for Solving Traveling Salesman Problem, Journal of Advanced Computational Intelligence and Intelligent Informatics, 2007. large amount of computation time is required. The numbers of fields where TSP can be used very effectively are. It appears as a sub-problem in many areas, such as DNA sequencing.in real time scenario, in transportation-based graphs, the edge weights can changeconstantly when they are based on the time to traverse the roadway they represent. 67 P a g e