SlideShare a Scribd company logo
1 of 22
Shruti Gandhi
(06913502809)
Sonal Doomra
(06513502809)
Indira Gandhi Institute of Technology
Department of Electronics and
Communication Engineering
Definition:
Given a set of cities and the
distance between each possible
pair, the Travelling Salesman
Problem is to find the best
possible way of โ€˜visiting all the
cities exactly once and returning
to the starting pointโ€™
TRAVELLING SALESMAN
PROBLEM
An Introduction
โ€ข.
TSP: An NP Hard
Problem
TSP is an NP-
hard problem
in
combinatorial
optimization
studied in
theoretical
computer
science.
In many
applications,
additional
constraints
such as limited
resources or
time windows
make the
problem
considerably
harder.
Removing
the
constraint of
visiting each
city exactly
one time
also doesn't
reduce
complexity
of the
problem
In spite of the
computational
difficulty of the
problem, a
large number of
heuristics and
exact methods
are known,
which can
solve
instances with
โ€ข In these applications, the concept city represents, for
example, customers, soldering
In these applications, the concept city represents, for
example, customers, soldering points, or DNA
fragments
โ€ข The concept distance represents travelling times or
cost, or a similarity measure between DNA fragments.
Even in its purest form
the TSP, has several
applications such as
planning, logistics,
DNA sequencing
and the
manufacture of
microchips.
Applications of TSP
โ€ข When a mechanical arm is used to fasten the nuts for
assembling parts, it moves through each nut in proper
order and returns to the initial position.
โ€ข The most economical travelling route will enable the
mechanical arm to finish its work within the shortest
time.
Mechanical
arm
โ€ข Inserting electrical elements in the manufacturing of
integrated circuits consumes certain energy when
moving from one electrical element to the other
during manufacturing.
โ€ข We need to arrange the manufacturing order to
minimize the energy consumption.
Integrated
circuit
Brief Summary of the
Project
Solving the TSP was an interesting problem during recent decades.
Almost every new approach for solving engineering and optimization
problems has been tested on the TSP as a general test bench. First
steps in solving the TSP were classical methods. These methods
consist of heuristic and exact methods. These classical methods for
solving the TSP usually result in exponential computational
complexities. Hence, new methods are required to overcome this
shortcoming. These methods include different kinds of optimization
techniques, nature based optimization algorithms i.e. Genetic
Algorithm, Ant Colony Optimization ,etc.
Metaheuristics , which represent a family of approximate optimization
techniques that have gained a lot of popularity in the past two decades,
are the tools we have used for solving TSP. They provide โ€œacceptableโ€
solutions in a reasonable time for solving hard and complex problems
in science and engineering. In this project, the population based
metaheuristics i.e Genetic Algorithm and Ant Colony Optimization are
explained and then modified to solve TSP. The results are then
compared with the classical techniques of Nearest Neighbour, Tabu
Search and Simulated Annealing to find out the most optimum solution.
The highlighting feature of our work is the development of a new hybrid
algorithm GACO , that merges two most popular Evolutionary
Algorithms , Ant Colony Optimization and Genetic Algorithm, to solve
the most complex combinatorial optimization problem, the TSP.
olving the Problem
Here we propose a hybrid metaheuristic (GACO), a hybrid of
genetic algorithm and ant colony optimization to solve the
generalized TSP, and the result obtained is compared with
the stand alone heuristics, to prove the efficiency of our
algorithm. All the codes were written and implemented in
MATLAB 8.
The proposed GACO algorithm is to enhance the
performance of genetic algorithm (GA) by
incorporating local search, ant colony optimization
(ACO), for TRAVELLING SALESMAN PROBLEM. In the
proposed GACO algorithm, genetic algorithm is
conducted to provide the DIVERSITY OF
ALIGNMENTs. Thereafter, ant colony optimization is
performed to MOVE OUT OF LOCAL OPTIMA.
From simulation results, it is shown that the proposed
GA-ACO algorithm has superior performance when
compared to other existing algorithms.
TSP using GACO
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Other heuristics used for TSP
Nearest Neighbor Algorithm For TSP
The NN method compares the distribution
of distances that occur from a data point to
its nearest neighbour in a given data set
with a randomly distributed data set
Best tour =
19 1 26 14 31 38 36 22 30 5 4 2 15 21 27
24 18 16 3 9 34 13 10 29 12 23 7 40 32 37
6 39 25 28 11 8 33 20 35 17
Minimum Distance =
5.1689
Time taken = 280.388999
TSP using GACO
9
SIMULATED ANNEALING
Simulated annealing is a single solution based
metaheuristic. The SA algorithm simulates the energy
changes in a system subjected to a cooling process until it
converges to an equilibrium state.
The graph for simulated annealing escaping from local minima. The higher the
temperature, the more significant the probability of accepting a worst move. At a
given temperature, the lower the increase of the objective function, the more
significant the probability of accepting the move. A better move is always
accepted.
The basic principle of tabu search is to pursue local search
whenever it encounters a local optimum by allowing non-
improving moves, cycling back to previously visited
solutions is prevented by the use of memories, called tabu
lists (short-term memory), that record the recent history of
the search.
TABU SEARCH
GENETIC ALGORITHMS
Population
size
Number of
generation
s
Crossover
rate
Mutation
rate
Factors affecting GA perform
ACO was developed by Dorigo , based on the fact that ants are
able to find the shortest route between their nest and a source of
food.This is done using pheromone trails, which ants deposit
whenever they travel, as a form of indirect communication.
ANT COLONY
OPTIMIZATION
Algorithm: ACO For TSP
Set parameters, initialize pheromone
trails
While (termination condition not
met) do
{ ConstructSolutions
UpdateTrails }
Simulation
Resultsโ€ขUsing Nearest Neighbour
โ€ขUsing Tabu Search
โ€ขUsing Simulated Annealing
โ€ขUsing Genetic Algorithm
โ€ขUsing Ant Colony Optimization
โ€ขUsing Hybrid GA and ACO ( GACO)
TSP using Nearest Neighbour
Best tour =
30 26 19 38 9 37 1 28 32 40 12 10 34
17 5 25 16 22 27 3
23 18 4 6 24 8 2 35 31 15 7 20 11
21 14 39 13 33 36 29
Minimum distance = 59.3578
Time taken =0.082592
-4 -2 0 2 4 6 8 10 12 14
-2
0
2
4
6
8
10
12
Path length = 59.3578
TSP using Tabu Search
Best tour =
20 40 13 26 28 29 30 14 8 36 22 5 38
34 2 17 10 4 18 24 31 37 9 23 27 16
32 39 11 25 35 19 12 21 33 6 15 7 3 1
Minimum distance =
6.1218
Time taken = 1.528810 seconds
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
TSP using Simulated Annealing
Best tour =
22 36 40 38 16 2 9 21 39 8 10 17 15 14 12
11 30
19 33 26 28 29 4 25 24 20 13 32 7 34 27 6
37 3 18 5 35 23 31 1
Minimum distance= 5.8825
Time taken = 49.951520
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
TSP using Genetic
Algorithm
Best tour =
38 20 39 34 29 9 12 4 3 22 8 5 31 11 28 15 35
30 7 32 33 23 18 14 6 26 13 16 24 19 2 25 10
21
17 37 40 27 1 36
Minimum distance =
5.3990
Time taken = 5.406894
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Total Distance = 5.3990, Iteration = 479
TSP using ACO
Best tour =
36 19 25 15 16 27 32 22 39 29 21 37 7
28 4 23 17 30 3 34 38 2 10 13 1 14 35
5 33 9 8 20 12 40 26 31 6 18 11 24 36
Minimum distance= 16.6220 Time taken =777.869303
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Algorithm
used
Min
Distance
Time taken
(sec)
Nearest
neighbour
245.9496 0.067407
Tabu Search 80.7395 20.623332
Simulated
Annealing
76.7459 60.715589
Genetic
Algorithm
55.4096 13.039126
ACO 21.2349 25.050779
GACO 20.6386 10.746399
Result
Comparison
Conclusion
In this project, the travelling salesman problem, its
complexity, variations and its applications in various
domains was studied. Here, we proposed GACO to solve
the complex problem and compare the result with the
nearest Neighbour method, metaheuristics such as
Simulated Annealing, Tabu Search and Evolutionary
Algorithms like Genetic Algorithm and Ant Colony
Optimization. The experimental results demonstrated that
the HYBRID GACO approach of finding the solution gives
the best result in terms of the optimal route travelled by the
salesman as compared to other heuristics used in this
project. The minimum distance travelled by the salesman is
the least for GACO.
Future ScopeThe work can be further extended to solve the travelling
salesman problem using the other hybrid metaheuristics
such as Genetic Algorithm with Particle Swarm
Optimization, or Simulated Annealing. Presently we are
working on hybridizing three metaheuristics (GA-ACO-SA)
to obtain a more optimal tour for the travelling salesman
and to improve the convergence behavior.

More Related Content

What's hot

Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman Problem
Daniel Raditya
ย 
Optimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping AlgorithmOptimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping Algorithm
Uday Wankar
ย 

What's hot (20)

Solving Quadratic Assignment Problems (QAP) using Ant Colony System
Solving Quadratic Assignment Problems (QAP) using Ant Colony SystemSolving Quadratic Assignment Problems (QAP) using Ant Colony System
Solving Quadratic Assignment Problems (QAP) using Ant Colony System
ย 
ant colony optimization
ant colony optimizationant colony optimization
ant colony optimization
ย 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
ย 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
ย 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
ย 
acoa
acoaacoa
acoa
ย 
Solving the traveling salesman problem by genetic algorithm
Solving the traveling salesman problem by genetic algorithmSolving the traveling salesman problem by genetic algorithm
Solving the traveling salesman problem by genetic algorithm
ย 
Swarm Intelligence: An Application of Ant Colony Optimization
Swarm Intelligence: An Application of Ant Colony OptimizationSwarm Intelligence: An Application of Ant Colony Optimization
Swarm Intelligence: An Application of Ant Colony Optimization
ย 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
ย 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms
ย 
Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman Problem
ย 
Optimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping AlgorithmOptimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping Algorithm
ย 
Solving travelling salesman problem using firefly algorithm
Solving travelling salesman problem using firefly algorithmSolving travelling salesman problem using firefly algorithm
Solving travelling salesman problem using firefly algorithm
ย 
A COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMS
A COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMSA COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMS
A COMPARISON BETWEEN SWARM INTELLIGENCE ALGORITHMS FOR ROUTING PROBLEMS
ย 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACO
ย 
Travelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm OptimizationTravelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm Optimization
ย 
ant colony algorithm
ant colony algorithmant colony algorithm
ant colony algorithm
ย 
Helgaun's algorithm for the TSP
Helgaun's algorithm for the TSPHelgaun's algorithm for the TSP
Helgaun's algorithm for the TSP
ย 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
ย 
September 11, Deliberative Algorithms II
September 11, Deliberative Algorithms IISeptember 11, Deliberative Algorithms II
September 11, Deliberative Algorithms II
ย 

Viewers also liked

Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)
Viraj Patil
ย 
S CUBE IN CEO MAGAZINE -2016
S CUBE IN CEO MAGAZINE -2016S CUBE IN CEO MAGAZINE -2016
S CUBE IN CEO MAGAZINE -2016
Shankar Chatterjee
ย 
Read words โ€“ forvo api
Read words โ€“ forvo apiRead words โ€“ forvo api
Read words โ€“ forvo api
emanuelll92
ย 
Hollow Pipes (8)
Hollow Pipes (8)Hollow Pipes (8)
Hollow Pipes (8)
vijay gopani
ย 
Bagian depan
Bagian depanBagian depan
Bagian depan
vilut nur
ย 
Jocelyn Russo Final -Culture Club Presentation
Jocelyn Russo Final -Culture Club PresentationJocelyn Russo Final -Culture Club Presentation
Jocelyn Russo Final -Culture Club Presentation
Jocelyn Russo
ย 

Viewers also liked (17)

Breaking the Glass Ceiling
Breaking the Glass CeilingBreaking the Glass Ceiling
Breaking the Glass Ceiling
ย 
Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)
ย 
ืกืงื™ืจืช ืขืจื™ื ื‘ืจืฉืช ื”ื—ื‘ืจืชื™ืช- ื›ื ืก ื“ื•ื‘ืจื™ ืจืฉื•ื™ื•ืช
ืกืงื™ืจืช ืขืจื™ื ื‘ืจืฉืช ื”ื—ื‘ืจืชื™ืช- ื›ื ืก ื“ื•ื‘ืจื™ ืจืฉื•ื™ื•ืชืกืงื™ืจืช ืขืจื™ื ื‘ืจืฉืช ื”ื—ื‘ืจืชื™ืช- ื›ื ืก ื“ื•ื‘ืจื™ ืจืฉื•ื™ื•ืช
ืกืงื™ืจืช ืขืจื™ื ื‘ืจืฉืช ื”ื—ื‘ืจืชื™ืช- ื›ื ืก ื“ื•ื‘ืจื™ ืจืฉื•ื™ื•ืช
ย 
Rumba dance lesson el paso tx
Rumba dance lesson el paso txRumba dance lesson el paso tx
Rumba dance lesson el paso tx
ย 
S CUBE IN CEO MAGAZINE -2016
S CUBE IN CEO MAGAZINE -2016S CUBE IN CEO MAGAZINE -2016
S CUBE IN CEO MAGAZINE -2016
ย 
Content-tastic Calender 2015
Content-tastic Calender 2015Content-tastic Calender 2015
Content-tastic Calender 2015
ย 
The Leaky Pipeline
The Leaky PipelineThe Leaky Pipeline
The Leaky Pipeline
ย 
Our environment
Our environmentOur environment
Our environment
ย 
ื ื™ื˜ื•ืจ ื•ืžื—ืงืจ ื•ื™ื“ื™ืื• ื‘ืื™ื ื˜ืจื ื˜
ื ื™ื˜ื•ืจ ื•ืžื—ืงืจ ื•ื™ื“ื™ืื• ื‘ืื™ื ื˜ืจื ื˜ื ื™ื˜ื•ืจ ื•ืžื—ืงืจ ื•ื™ื“ื™ืื• ื‘ืื™ื ื˜ืจื ื˜
ื ื™ื˜ื•ืจ ื•ืžื—ืงืจ ื•ื™ื“ื™ืื• ื‘ืื™ื ื˜ืจื ื˜
ย 
ะดะพ ะฒะธั…ะพะฒะฝะพะณะพ ะทะฐั…ะพะดัƒ ัˆะปัั…ะฐะผะธ ะฒั–ะบั–ะฒ
ะดะพ ะฒะธั…ะพะฒะฝะพะณะพ ะทะฐั…ะพะดัƒ ัˆะปัั…ะฐะผะธ ะฒั–ะบั–ะฒะดะพ ะฒะธั…ะพะฒะฝะพะณะพ ะทะฐั…ะพะดัƒ ัˆะปัั…ะฐะผะธ ะฒั–ะบั–ะฒ
ะดะพ ะฒะธั…ะพะฒะฝะพะณะพ ะทะฐั…ะพะดัƒ ัˆะปัั…ะฐะผะธ ะฒั–ะบั–ะฒ
ย 
Market research presentation
Market research presentationMarket research presentation
Market research presentation
ย 
Read words โ€“ forvo api
Read words โ€“ forvo apiRead words โ€“ forvo api
Read words โ€“ forvo api
ย 
The Consultants - Corporate Profile
The Consultants - Corporate ProfileThe Consultants - Corporate Profile
The Consultants - Corporate Profile
ย 
Hollow Pipes (8)
Hollow Pipes (8)Hollow Pipes (8)
Hollow Pipes (8)
ย 
Bagian depan
Bagian depanBagian depan
Bagian depan
ย 
ืžืื‘ืงื™ ื”ืชืงืฉื•ืจืช ื•ื”ืืžื•ืŸ ื”ืฆื™ื‘ื•ืจื™
ืžืื‘ืงื™ ื”ืชืงืฉื•ืจืช ื•ื”ืืžื•ืŸ ื”ืฆื™ื‘ื•ืจื™ืžืื‘ืงื™ ื”ืชืงืฉื•ืจืช ื•ื”ืืžื•ืŸ ื”ืฆื™ื‘ื•ืจื™
ืžืื‘ืงื™ ื”ืชืงืฉื•ืจืช ื•ื”ืืžื•ืŸ ื”ืฆื™ื‘ื•ืจื™
ย 
Jocelyn Russo Final -Culture Club Presentation
Jocelyn Russo Final -Culture Club PresentationJocelyn Russo Final -Culture Club Presentation
Jocelyn Russo Final -Culture Club Presentation
ย 

Similar to Solving TSP using Hybrid GACO

grey relational analysis of Multi objective problem
grey relational analysis of Multi objective problemgrey relational analysis of Multi objective problem
grey relational analysis of Multi objective problem
jsanthakumar1987
ย 

Similar to Solving TSP using Hybrid GACO (20)

An improved ant colony algorithm based on
An improved ant colony algorithm based onAn improved ant colony algorithm based on
An improved ant colony algorithm based on
ย 
fuzzy fuzzification and defuzzification
fuzzy fuzzification and defuzzificationfuzzy fuzzification and defuzzification
fuzzy fuzzification and defuzzification
ย 
Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemParticle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
ย 
Algorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSPAlgorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSP
ย 
Comparison of signal smoothing techniques for use in embedded system for moni...
Comparison of signal smoothing techniques for use in embedded system for moni...Comparison of signal smoothing techniques for use in embedded system for moni...
Comparison of signal smoothing techniques for use in embedded system for moni...
ย 
paper
paperpaper
paper
ย 
Feature Selection Method Based on Chaotic Maps and Butterfly Optimization Alg...
Feature Selection Method Based on Chaotic Maps and Butterfly Optimization Alg...Feature Selection Method Based on Chaotic Maps and Butterfly Optimization Alg...
Feature Selection Method Based on Chaotic Maps and Butterfly Optimization Alg...
ย 
A beamforming comparative study of least mean square, genetic algorithm and g...
A beamforming comparative study of least mean square, genetic algorithm and g...A beamforming comparative study of least mean square, genetic algorithm and g...
A beamforming comparative study of least mean square, genetic algorithm and g...
ย 
A Study on Image Reconfiguration Algorithm of Compressed Sensing
A Study on Image Reconfiguration Algorithm of Compressed SensingA Study on Image Reconfiguration Algorithm of Compressed Sensing
A Study on Image Reconfiguration Algorithm of Compressed Sensing
ย 
Particle filter
Particle filterParticle filter
Particle filter
ย 
The behaviour of ACS-TSP algorithm when adapting both pheromone parameters us...
The behaviour of ACS-TSP algorithm when adapting both pheromone parameters us...The behaviour of ACS-TSP algorithm when adapting both pheromone parameters us...
The behaviour of ACS-TSP algorithm when adapting both pheromone parameters us...
ย 
Chaotic ANT System Optimization for Path Planning of the Mobile Robots
Chaotic ANT System Optimization for Path Planning of the Mobile RobotsChaotic ANT System Optimization for Path Planning of the Mobile Robots
Chaotic ANT System Optimization for Path Planning of the Mobile Robots
ย 
grey relational analysis of Multi objective problem
grey relational analysis of Multi objective problemgrey relational analysis of Multi objective problem
grey relational analysis of Multi objective problem
ย 
Training on Multi-Criteria Decision-Making methods.pptx
Training on Multi-Criteria Decision-Making methods.pptxTraining on Multi-Criteria Decision-Making methods.pptx
Training on Multi-Criteria Decision-Making methods.pptx
ย 
EFFฤฐCฤฐENT PAPR REDUCTฤฐON APPROACH FOR SELECTฤฐVE MAPPฤฐNG ฤฐN A STBC MIMO-OFDM S...
EFFฤฐCฤฐENT PAPR REDUCTฤฐON APPROACH FOR SELECTฤฐVE MAPPฤฐNG ฤฐN A STBC MIMO-OFDM S...EFFฤฐCฤฐENT PAPR REDUCTฤฐON APPROACH FOR SELECTฤฐVE MAPPฤฐNG ฤฐN A STBC MIMO-OFDM S...
EFFฤฐCฤฐENT PAPR REDUCTฤฐON APPROACH FOR SELECTฤฐVE MAPPฤฐNG ฤฐN A STBC MIMO-OFDM S...
ย 
A NEW APPROACH IN DYNAMIC TRAVELING SALESMAN PROBLEM: A HYBRID OF ANT COLONY ...
A NEW APPROACH IN DYNAMIC TRAVELING SALESMAN PROBLEM: A HYBRID OF ANT COLONY ...A NEW APPROACH IN DYNAMIC TRAVELING SALESMAN PROBLEM: A HYBRID OF ANT COLONY ...
A NEW APPROACH IN DYNAMIC TRAVELING SALESMAN PROBLEM: A HYBRID OF ANT COLONY ...
ย 
Blast fasta 4
Blast fasta 4Blast fasta 4
Blast fasta 4
ย 
A Survey of Solving Travelling Salesman Problem using Ant Colony Optimization
A Survey of Solving Travelling Salesman Problem using Ant Colony OptimizationA Survey of Solving Travelling Salesman Problem using Ant Colony Optimization
A Survey of Solving Travelling Salesman Problem using Ant Colony Optimization
ย 
mapem.ppsx
mapem.ppsxmapem.ppsx
mapem.ppsx
ย 
MAPEM.ppsx
MAPEM.ppsxMAPEM.ppsx
MAPEM.ppsx
ย 

Recently uploaded

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
KreezheaRecto
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
ย 

Recently uploaded (20)

Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
ย 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
ย 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
ย 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
ย 

Solving TSP using Hybrid GACO

  • 1. Shruti Gandhi (06913502809) Sonal Doomra (06513502809) Indira Gandhi Institute of Technology Department of Electronics and Communication Engineering
  • 2. Definition: Given a set of cities and the distance between each possible pair, the Travelling Salesman Problem is to find the best possible way of โ€˜visiting all the cities exactly once and returning to the starting pointโ€™ TRAVELLING SALESMAN PROBLEM An Introduction
  • 3. โ€ข. TSP: An NP Hard Problem TSP is an NP- hard problem in combinatorial optimization studied in theoretical computer science. In many applications, additional constraints such as limited resources or time windows make the problem considerably harder. Removing the constraint of visiting each city exactly one time also doesn't reduce complexity of the problem In spite of the computational difficulty of the problem, a large number of heuristics and exact methods are known, which can solve instances with
  • 4. โ€ข In these applications, the concept city represents, for example, customers, soldering In these applications, the concept city represents, for example, customers, soldering points, or DNA fragments โ€ข The concept distance represents travelling times or cost, or a similarity measure between DNA fragments. Even in its purest form the TSP, has several applications such as planning, logistics, DNA sequencing and the manufacture of microchips. Applications of TSP โ€ข When a mechanical arm is used to fasten the nuts for assembling parts, it moves through each nut in proper order and returns to the initial position. โ€ข The most economical travelling route will enable the mechanical arm to finish its work within the shortest time. Mechanical arm โ€ข Inserting electrical elements in the manufacturing of integrated circuits consumes certain energy when moving from one electrical element to the other during manufacturing. โ€ข We need to arrange the manufacturing order to minimize the energy consumption. Integrated circuit
  • 5. Brief Summary of the Project Solving the TSP was an interesting problem during recent decades. Almost every new approach for solving engineering and optimization problems has been tested on the TSP as a general test bench. First steps in solving the TSP were classical methods. These methods consist of heuristic and exact methods. These classical methods for solving the TSP usually result in exponential computational complexities. Hence, new methods are required to overcome this shortcoming. These methods include different kinds of optimization techniques, nature based optimization algorithms i.e. Genetic Algorithm, Ant Colony Optimization ,etc. Metaheuristics , which represent a family of approximate optimization techniques that have gained a lot of popularity in the past two decades, are the tools we have used for solving TSP. They provide โ€œacceptableโ€ solutions in a reasonable time for solving hard and complex problems in science and engineering. In this project, the population based metaheuristics i.e Genetic Algorithm and Ant Colony Optimization are explained and then modified to solve TSP. The results are then compared with the classical techniques of Nearest Neighbour, Tabu Search and Simulated Annealing to find out the most optimum solution. The highlighting feature of our work is the development of a new hybrid algorithm GACO , that merges two most popular Evolutionary Algorithms , Ant Colony Optimization and Genetic Algorithm, to solve the most complex combinatorial optimization problem, the TSP.
  • 7. Here we propose a hybrid metaheuristic (GACO), a hybrid of genetic algorithm and ant colony optimization to solve the generalized TSP, and the result obtained is compared with the stand alone heuristics, to prove the efficiency of our algorithm. All the codes were written and implemented in MATLAB 8.
  • 8. The proposed GACO algorithm is to enhance the performance of genetic algorithm (GA) by incorporating local search, ant colony optimization (ACO), for TRAVELLING SALESMAN PROBLEM. In the proposed GACO algorithm, genetic algorithm is conducted to provide the DIVERSITY OF ALIGNMENTs. Thereafter, ant colony optimization is performed to MOVE OUT OF LOCAL OPTIMA. From simulation results, it is shown that the proposed GA-ACO algorithm has superior performance when compared to other existing algorithms. TSP using GACO 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
  • 9. Other heuristics used for TSP Nearest Neighbor Algorithm For TSP The NN method compares the distribution of distances that occur from a data point to its nearest neighbour in a given data set with a randomly distributed data set Best tour = 19 1 26 14 31 38 36 22 30 5 4 2 15 21 27 24 18 16 3 9 34 13 10 29 12 23 7 40 32 37 6 39 25 28 11 8 33 20 35 17 Minimum Distance = 5.1689 Time taken = 280.388999 TSP using GACO 9
  • 10.
  • 11. SIMULATED ANNEALING Simulated annealing is a single solution based metaheuristic. The SA algorithm simulates the energy changes in a system subjected to a cooling process until it converges to an equilibrium state. The graph for simulated annealing escaping from local minima. The higher the temperature, the more significant the probability of accepting a worst move. At a given temperature, the lower the increase of the objective function, the more significant the probability of accepting the move. A better move is always accepted.
  • 12. The basic principle of tabu search is to pursue local search whenever it encounters a local optimum by allowing non- improving moves, cycling back to previously visited solutions is prevented by the use of memories, called tabu lists (short-term memory), that record the recent history of the search. TABU SEARCH
  • 14. ACO was developed by Dorigo , based on the fact that ants are able to find the shortest route between their nest and a source of food.This is done using pheromone trails, which ants deposit whenever they travel, as a form of indirect communication. ANT COLONY OPTIMIZATION Algorithm: ACO For TSP Set parameters, initialize pheromone trails While (termination condition not met) do { ConstructSolutions UpdateTrails }
  • 15. Simulation Resultsโ€ขUsing Nearest Neighbour โ€ขUsing Tabu Search โ€ขUsing Simulated Annealing โ€ขUsing Genetic Algorithm โ€ขUsing Ant Colony Optimization โ€ขUsing Hybrid GA and ACO ( GACO)
  • 16. TSP using Nearest Neighbour Best tour = 30 26 19 38 9 37 1 28 32 40 12 10 34 17 5 25 16 22 27 3 23 18 4 6 24 8 2 35 31 15 7 20 11 21 14 39 13 33 36 29 Minimum distance = 59.3578 Time taken =0.082592 -4 -2 0 2 4 6 8 10 12 14 -2 0 2 4 6 8 10 12 Path length = 59.3578
  • 17. TSP using Tabu Search Best tour = 20 40 13 26 28 29 30 14 8 36 22 5 38 34 2 17 10 4 18 24 31 37 9 23 27 16 32 39 11 25 35 19 12 21 33 6 15 7 3 1 Minimum distance = 6.1218 Time taken = 1.528810 seconds 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
  • 18. TSP using Simulated Annealing Best tour = 22 36 40 38 16 2 9 21 39 8 10 17 15 14 12 11 30 19 33 26 28 29 4 25 24 20 13 32 7 34 27 6 37 3 18 5 35 23 31 1 Minimum distance= 5.8825 Time taken = 49.951520 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
  • 19. TSP using Genetic Algorithm Best tour = 38 20 39 34 29 9 12 4 3 22 8 5 31 11 28 15 35 30 7 32 33 23 18 14 6 26 13 16 24 19 2 25 10 21 17 37 40 27 1 36 Minimum distance = 5.3990 Time taken = 5.406894 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Total Distance = 5.3990, Iteration = 479
  • 20. TSP using ACO Best tour = 36 19 25 15 16 27 32 22 39 29 21 37 7 28 4 23 17 30 3 34 38 2 10 13 1 14 35 5 33 9 8 20 12 40 26 31 6 18 11 24 36 Minimum distance= 16.6220 Time taken =777.869303 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
  • 21. Algorithm used Min Distance Time taken (sec) Nearest neighbour 245.9496 0.067407 Tabu Search 80.7395 20.623332 Simulated Annealing 76.7459 60.715589 Genetic Algorithm 55.4096 13.039126 ACO 21.2349 25.050779 GACO 20.6386 10.746399 Result Comparison
  • 22. Conclusion In this project, the travelling salesman problem, its complexity, variations and its applications in various domains was studied. Here, we proposed GACO to solve the complex problem and compare the result with the nearest Neighbour method, metaheuristics such as Simulated Annealing, Tabu Search and Evolutionary Algorithms like Genetic Algorithm and Ant Colony Optimization. The experimental results demonstrated that the HYBRID GACO approach of finding the solution gives the best result in terms of the optimal route travelled by the salesman as compared to other heuristics used in this project. The minimum distance travelled by the salesman is the least for GACO. Future ScopeThe work can be further extended to solve the travelling salesman problem using the other hybrid metaheuristics such as Genetic Algorithm with Particle Swarm Optimization, or Simulated Annealing. Presently we are working on hybridizing three metaheuristics (GA-ACO-SA) to obtain a more optimal tour for the travelling salesman and to improve the convergence behavior.