SlideShare a Scribd company logo
“SOLVING A TSP WITH HEURISTIC MODEL
APPROACH AND COMPARING WITH AMPL
SOLUTION”
Presented by
Dr. Govind Shay Sharma
Department of Mathematics
Pornima College of Engineering, Jaipur
ABSTRACT
 The paper will discuss on the two methods to solve the
TSP problem of a book seller. The TSP problem solution
finds the optimum route which optimizes the route and
cost. The paper shows the comparison result of
Hungarian method hand approach and AMPL program.
The user-defined function is involved with AMPL to solve
a more complicated problem. This shows the better
result between the both. The purpose of the paper is to
find the calculation by AMPL programming and
approach for optimum route. The AMPL programming is
used for the solution of Linear and Non linear equations.
In this paper we are discussing the problem of book
seller who has to visit the five cities to fulfill the demand.
INTRODUCTION
 The TSP problem deals with finding of the shortest tour
in n- cities, where each city is visited exactly once
before returning to the starting point. The associated
TSP model is defined by two pieces of data.
 The number of cities n. The distances dij between cities
I and j ( dij = ∞ if cities I and j are not linked).
 The maximum number of tours in an n-city situations is .
[1] presented assignment based integer linear
formulation. This concluded the assignment modal that
can lead to infeasible solution. Infeasibility can be
removed by introducing additional constraints. [1]
studied about a salesman of five cities which is consider
designated visit of ith to jth city by decision variable Xij ,
where I = 1,2,3,4,5 and j = 1,2,3,4,5 but I to j. To solve
the ILPP, software LINGO version 11 was used.
Asymmetric Travelling salesman problem is studied with
TIME WINDOW ( ATSP-TW) by [2].
INTRODUCTION
 The real word application aim at is the control of a
stacker crane in a warehouse.TSP is the
optimization problem but with increasing the
number of cities it is converted in the complex
travelling problem. [3]. [4] optimize delivering of
packages at twelve randomly chosen pizza centers
in the city of Jaipur. [5] Presented a mapping of
chicken supply chains and explores inputs and
outputs of the systems which have important
implications for the sustainability.
INTRODUCTION
 [6] described Genetic algorithms (GA) are basically
based on the survival of the fittest chromosome
among the species which are generated by random
changes in their gene-structure in the evolutionary
biology. [7] reviewed on various algorithms like Ant
Colony Optimization Algorithms (ACO), Particle
Swarm Optimization (PSO) and Genetic Algorithms
(GA) available with respective attributes to find the
nearest optimal solution for the traveling salesman
problem
INTRODUCTION
 According to [8] the TSP is the best possible way to
visiting all cities by salesman and returning to the
starting point with optimum cost.
 [9] study is to find the role of Operations Research
techniques for made a job assignment model which
help to increase the labor productivity and cost
reduction with respect to time. [10] Studied the role
of Operations Research techniques for designing a
Material Handling model which will help to increase
the productivity and reduce cost. [11] Presented
experiences with mixed integer linear programming
based short-term hydro scheduling.
Define
=
if city j is reached from city I, then value assign 1 and otherwise 0.
Minimize
for all I = j
The Hungarian method here we apply to solve the problem of a book
salesman. Here we approach to solve the problem a sales man who lives
in Basin must to visit the four cities. Once a month he has to tour among
four cities Wald, Bon, Mena and Kiln. The distances from Basin to Wald
120 Milles, Basin to Wald 220 Miles, Basin to Mena 150 Miles and Basin
to Kiln 210 Miles
The aim of this study is to find the result of problem by hands approach solution
by Hungarian method and AMPL model. In Hungarian approach first we change
the all diagonal zero’s to dashes or infinity symbols. Now The Distance matrix
can be written as
Now by the assigning process, allot the Zero from row one and cross the entire zero in that
row and column. And find the resultant matrix
So we consider the path for salesman is 1-4-5-2-3 -1. Here the distance find 1-4 = 150, 4-5 =
190, 5-2= 130, 2-3 = 80, 3-1 = 220. The total distance cover by the salesman is 770 miles.
Now we calculate the path of this problem with AMPL programming. And
compare the solution with the hand approach optimal solution by Hungarian method.
And compare the solution with the hand approach optimal solution by Hungarian
method. AMPL is a modeling programming approach for more complex mathematical
problems. It is a declarative and imperative programming style. AMPL is most popular
format representation of complex mathematical problems.
AMPL PROGRAMMING :-
FILE NAME:- tsp.mod
minimize z:
sum{i in city, j in city} DIST[i,j]*x[i,j];
subject to
# exactly one outgoing
c1{k in city}: sum{i in city} x[i,k] = 1;
# exactly one incoming
c2{k in city}: sum{j in city} x[k,j] = 1;
# no subtours
c3{k in city, j in city: j > 1 and k > 1}:
U[j] - U[k] + N*x[j,k] <= N-1;
data;
param: city: names :=
1 "DELHI"
2 "GAJIYABAD"
3 "MEERUT"
4 "NOIDA"
5 "LUDHIYANA"
;
param DIST: 1 2 3 4 5 :=
1 50000 120 220 150 210
2 120 50000 80 110 130
3 220 80 50000 160 185
4 150 110 160 50000 190
5 210 130 185 190 50000
;
Result:-
ampl: include welcome.run
CPLEX 12.6.3.0: optimal integer solution; objective 725
24 MIP simplex iterations
0 branch-and-bound nodes
z = 725
x [*,*]
: 1 2 3 4 5 :=
1 0 0 0 1 0
2 1 0 0 0 0
3 0 1 0 0 0
4 0 0 0 0 1
5 0 0 1 0 0
;
U [*] :=
1 0
2 4
3 2
4 0
5 1
;
1 (DELHI) -> 4 (NOIDA) [1.00]
2 (GAJIYABAD) -> 1 (DELHI) [1.00]
3 (MEERUT) -> 2 (GAJIYABAD) [1.00]
4 (NOIDA) -> 5 (LUDHIYANA) [1.00]
5 (LUDHIYANA) -> 3 (MEERUT) [1.00]
CPLEX 12.6.3.0: optimal integer solution; objective 725
22 MIP simplex iterations
0 branch-and-bound nodes
z = 725
;
Result & Conclusion: - Travelling Salesmen problem is the major concept of Operations research.
In this study we solve the TSP with the traditional method and AMPL programming. With both
the way and we find the result of TSP and compare the result which is more optimistic. The total
distance cover by the salesman is 770 miles with the Hungarian heuristic approach. And to solve
the problem with the AMPL programming we found the distance cover by salesmen 725 miles.
The AMPL programming provide the minimum distance cover by salesmen which is 45 miles
lower than the result by heuristic approach. The result shows that AMPL programming is the
better tool to solve the TSP.
Operation research model for solving TSP

More Related Content

What's hot

A new hybrid approach for solving travelling salesman problem using ordered c...
A new hybrid approach for solving travelling salesman problem using ordered c...A new hybrid approach for solving travelling salesman problem using ordered c...
A new hybrid approach for solving travelling salesman problem using ordered c...
eSAT Journals
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment ProblemAmit Kumar
 
Calculation of optimum cost of transportation of goods from godowns to differ...
Calculation of optimum cost of transportation of goods from godowns to differ...Calculation of optimum cost of transportation of goods from godowns to differ...
Calculation of optimum cost of transportation of goods from godowns to differ...
Siva Pradeep Bolisetti
 
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
BRNSS Publication Hub
 
The Travelling Salesman Problem
The Travelling Salesman ProblemThe Travelling Salesman Problem
The Travelling Salesman Problem
guest3d82c4
 
Evolving Universal Hash Function using Genetic Algorithms
Evolving Universal Hash Function using Genetic AlgorithmsEvolving Universal Hash Function using Genetic Algorithms
Evolving Universal Hash Function using Genetic Algorithms
Mustafa Safdari
 
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
Ilgın Kavaklıoğulları
 
Mb0048 operations research
Mb0048 operations researchMb0048 operations research
Mb0048 operations research
smumbahelp
 
Modification of a heuristic method
Modification of a heuristic methodModification of a heuristic method
Modification of a heuristic method
orajjournal
 
Transportation and Assignment
Transportation and AssignmentTransportation and Assignment
Transportation and Assignment
Lokesh Payasi
 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms
Shivank Shah
 
Application of Business Mathematics in real life (PPT)
Application of Business Mathematics in real life (PPT)Application of Business Mathematics in real life (PPT)
Application of Business Mathematics in real life (PPT)
Emran Hosain
 
Traveling Eco-Salesman
Traveling Eco-SalesmanTraveling Eco-Salesman
Traveling Eco-Salesman
Adrian Strugała
 
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
ecij
 
Global optimization
Global optimizationGlobal optimization
Global optimization
bpenalver
 
Transportation problem_Operation research
Transportation problem_Operation researchTransportation problem_Operation research
Transportation problem_Operation research
Ataur Rahman
 

What's hot (19)

A new hybrid approach for solving travelling salesman problem using ordered c...
A new hybrid approach for solving travelling salesman problem using ordered c...A new hybrid approach for solving travelling salesman problem using ordered c...
A new hybrid approach for solving travelling salesman problem using ordered c...
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
Calculation of optimum cost of transportation of goods from godowns to differ...
Calculation of optimum cost of transportation of goods from godowns to differ...Calculation of optimum cost of transportation of goods from godowns to differ...
Calculation of optimum cost of transportation of goods from godowns to differ...
 
Linkedin_PowerPoint
Linkedin_PowerPointLinkedin_PowerPoint
Linkedin_PowerPoint
 
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
 
The Travelling Salesman Problem
The Travelling Salesman ProblemThe Travelling Salesman Problem
The Travelling Salesman Problem
 
Evolving Universal Hash Function using Genetic Algorithms
Evolving Universal Hash Function using Genetic AlgorithmsEvolving Universal Hash Function using Genetic Algorithms
Evolving Universal Hash Function using Genetic Algorithms
 
Lecture28 tsp
Lecture28 tspLecture28 tsp
Lecture28 tsp
 
T P
T PT P
T P
 
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
 
Mb0048 operations research
Mb0048 operations researchMb0048 operations research
Mb0048 operations research
 
Modification of a heuristic method
Modification of a heuristic methodModification of a heuristic method
Modification of a heuristic method
 
Transportation and Assignment
Transportation and AssignmentTransportation and Assignment
Transportation and Assignment
 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms
 
Application of Business Mathematics in real life (PPT)
Application of Business Mathematics in real life (PPT)Application of Business Mathematics in real life (PPT)
Application of Business Mathematics in real life (PPT)
 
Traveling Eco-Salesman
Traveling Eco-SalesmanTraveling Eco-Salesman
Traveling Eco-Salesman
 
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
 
Global optimization
Global optimizationGlobal optimization
Global optimization
 
Transportation problem_Operation research
Transportation problem_Operation researchTransportation problem_Operation research
Transportation problem_Operation research
 

Similar to Operation research model for solving TSP

With saloni in ijarcsse
With saloni in ijarcsseWith saloni in ijarcsse
With saloni in ijarcsse
satish rana
 
Edge pso
Edge psoEdge pso
Edge pso
Vaisakh Shaj
 
Traveling Salesman Problem
Traveling Salesman Problem Traveling Salesman Problem
Traveling Salesman Problem
Indian Institute of Technology, Roorkee
 
Hybrid iterated local search algorithm for optimization route of airplane tr...
Hybrid iterated local search algorithm for optimization route of  airplane tr...Hybrid iterated local search algorithm for optimization route of  airplane tr...
Hybrid iterated local search algorithm for optimization route of airplane tr...
IJECEIAES
 
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
IRJET Journal
 
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic AlgorithmThe Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
ijsrd.com
 
OPERATIONAL RESEARCH BUSINESS APPLICATIONS
OPERATIONAL RESEARCH BUSINESS APPLICATIONS OPERATIONAL RESEARCH BUSINESS APPLICATIONS
OPERATIONAL RESEARCH BUSINESS APPLICATIONS
Akhilesh Mishra
 
Optimization Approach for Capacitated Vehicle Routing Problem Using Genetic A...
Optimization Approach for Capacitated Vehicle Routing Problem Using Genetic A...Optimization Approach for Capacitated Vehicle Routing Problem Using Genetic A...
Optimization Approach for Capacitated Vehicle Routing Problem Using Genetic A...
ijsrd.com
 
Optimal Vacation Itinerary Modeling
Optimal Vacation Itinerary ModelingOptimal Vacation Itinerary Modeling
Optimal Vacation Itinerary Modeling
Gerard Trimberger
 
B04 05 1116
B04 05 1116B04 05 1116
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
csandit
 
Travelling Salesman Problem, Robotics & Inverse Kinematics
Travelling Salesman Problem, Robotics & Inverse KinematicsTravelling Salesman Problem, Robotics & Inverse Kinematics
Travelling Salesman Problem, Robotics & Inverse Kinematics
mcoond
 
A study and implementation of the transit route network design problem for a ...
A study and implementation of the transit route network design problem for a ...A study and implementation of the transit route network design problem for a ...
A study and implementation of the transit route network design problem for a ...
csandit
 
A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...
A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...
A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...
cscpconf
 
Combinatorial Optimization
Combinatorial OptimizationCombinatorial Optimization
Combinatorial Optimization
Institute of Technology, Nirma University
 
AN IMPROVED GENETIC ALGORITHM WITH A LOCAL OPTIMIZATION STRATEGY AND AN EXTRA...
AN IMPROVED GENETIC ALGORITHM WITH A LOCAL OPTIMIZATION STRATEGY AND AN EXTRA...AN IMPROVED GENETIC ALGORITHM WITH A LOCAL OPTIMIZATION STRATEGY AND AN EXTRA...
AN IMPROVED GENETIC ALGORITHM WITH A LOCAL OPTIMIZATION STRATEGY AND AN EXTRA...
ijcseit
 
Computational Intelligence Assisted Engineering Design Optimization (using MA...
Computational Intelligence Assisted Engineering Design Optimization (using MA...Computational Intelligence Assisted Engineering Design Optimization (using MA...
Computational Intelligence Assisted Engineering Design Optimization (using MA...
AmirParnianifard1
 

Similar to Operation research model for solving TSP (20)

With saloni in ijarcsse
With saloni in ijarcsseWith saloni in ijarcsse
With saloni in ijarcsse
 
Edge pso
Edge psoEdge pso
Edge pso
 
Traveling Salesman Problem
Traveling Salesman Problem Traveling Salesman Problem
Traveling Salesman Problem
 
Hybrid iterated local search algorithm for optimization route of airplane tr...
Hybrid iterated local search algorithm for optimization route of  airplane tr...Hybrid iterated local search algorithm for optimization route of  airplane tr...
Hybrid iterated local search algorithm for optimization route of airplane tr...
 
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
 
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic AlgorithmThe Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
The Optimizing Multiple Travelling Salesman Problem Using Genetic Algorithm
 
OPERATIONAL RESEARCH BUSINESS APPLICATIONS
OPERATIONAL RESEARCH BUSINESS APPLICATIONS OPERATIONAL RESEARCH BUSINESS APPLICATIONS
OPERATIONAL RESEARCH BUSINESS APPLICATIONS
 
Optimization Approach for Capacitated Vehicle Routing Problem Using Genetic A...
Optimization Approach for Capacitated Vehicle Routing Problem Using Genetic A...Optimization Approach for Capacitated Vehicle Routing Problem Using Genetic A...
Optimization Approach for Capacitated Vehicle Routing Problem Using Genetic A...
 
50120140503015
5012014050301550120140503015
50120140503015
 
Optimal Vacation Itinerary Modeling
Optimal Vacation Itinerary ModelingOptimal Vacation Itinerary Modeling
Optimal Vacation Itinerary Modeling
 
Analysis of Algorithm
Analysis of AlgorithmAnalysis of Algorithm
Analysis of Algorithm
 
B04 05 1116
B04 05 1116B04 05 1116
B04 05 1116
 
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
Hybrid Ant Colony Optimization for Real-World Delivery Problems Based on Real...
 
Travelling Salesman Problem, Robotics & Inverse Kinematics
Travelling Salesman Problem, Robotics & Inverse KinematicsTravelling Salesman Problem, Robotics & Inverse Kinematics
Travelling Salesman Problem, Robotics & Inverse Kinematics
 
K046036367
K046036367K046036367
K046036367
 
A study and implementation of the transit route network design problem for a ...
A study and implementation of the transit route network design problem for a ...A study and implementation of the transit route network design problem for a ...
A study and implementation of the transit route network design problem for a ...
 
A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...
A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...
A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...
 
Combinatorial Optimization
Combinatorial OptimizationCombinatorial Optimization
Combinatorial Optimization
 
AN IMPROVED GENETIC ALGORITHM WITH A LOCAL OPTIMIZATION STRATEGY AND AN EXTRA...
AN IMPROVED GENETIC ALGORITHM WITH A LOCAL OPTIMIZATION STRATEGY AND AN EXTRA...AN IMPROVED GENETIC ALGORITHM WITH A LOCAL OPTIMIZATION STRATEGY AND AN EXTRA...
AN IMPROVED GENETIC ALGORITHM WITH A LOCAL OPTIMIZATION STRATEGY AND AN EXTRA...
 
Computational Intelligence Assisted Engineering Design Optimization (using MA...
Computational Intelligence Assisted Engineering Design Optimization (using MA...Computational Intelligence Assisted Engineering Design Optimization (using MA...
Computational Intelligence Assisted Engineering Design Optimization (using MA...
 

Recently uploaded

space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 

Recently uploaded (20)

space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 

Operation research model for solving TSP

  • 1. “SOLVING A TSP WITH HEURISTIC MODEL APPROACH AND COMPARING WITH AMPL SOLUTION” Presented by Dr. Govind Shay Sharma Department of Mathematics Pornima College of Engineering, Jaipur
  • 2. ABSTRACT  The paper will discuss on the two methods to solve the TSP problem of a book seller. The TSP problem solution finds the optimum route which optimizes the route and cost. The paper shows the comparison result of Hungarian method hand approach and AMPL program. The user-defined function is involved with AMPL to solve a more complicated problem. This shows the better result between the both. The purpose of the paper is to find the calculation by AMPL programming and approach for optimum route. The AMPL programming is used for the solution of Linear and Non linear equations. In this paper we are discussing the problem of book seller who has to visit the five cities to fulfill the demand.
  • 3. INTRODUCTION  The TSP problem deals with finding of the shortest tour in n- cities, where each city is visited exactly once before returning to the starting point. The associated TSP model is defined by two pieces of data.  The number of cities n. The distances dij between cities I and j ( dij = ∞ if cities I and j are not linked).  The maximum number of tours in an n-city situations is . [1] presented assignment based integer linear formulation. This concluded the assignment modal that can lead to infeasible solution. Infeasibility can be removed by introducing additional constraints. [1] studied about a salesman of five cities which is consider designated visit of ith to jth city by decision variable Xij , where I = 1,2,3,4,5 and j = 1,2,3,4,5 but I to j. To solve the ILPP, software LINGO version 11 was used. Asymmetric Travelling salesman problem is studied with TIME WINDOW ( ATSP-TW) by [2].
  • 4. INTRODUCTION  The real word application aim at is the control of a stacker crane in a warehouse.TSP is the optimization problem but with increasing the number of cities it is converted in the complex travelling problem. [3]. [4] optimize delivering of packages at twelve randomly chosen pizza centers in the city of Jaipur. [5] Presented a mapping of chicken supply chains and explores inputs and outputs of the systems which have important implications for the sustainability.
  • 5. INTRODUCTION  [6] described Genetic algorithms (GA) are basically based on the survival of the fittest chromosome among the species which are generated by random changes in their gene-structure in the evolutionary biology. [7] reviewed on various algorithms like Ant Colony Optimization Algorithms (ACO), Particle Swarm Optimization (PSO) and Genetic Algorithms (GA) available with respective attributes to find the nearest optimal solution for the traveling salesman problem
  • 6. INTRODUCTION  According to [8] the TSP is the best possible way to visiting all cities by salesman and returning to the starting point with optimum cost.  [9] study is to find the role of Operations Research techniques for made a job assignment model which help to increase the labor productivity and cost reduction with respect to time. [10] Studied the role of Operations Research techniques for designing a Material Handling model which will help to increase the productivity and reduce cost. [11] Presented experiences with mixed integer linear programming based short-term hydro scheduling.
  • 7. Define = if city j is reached from city I, then value assign 1 and otherwise 0. Minimize for all I = j
  • 8. The Hungarian method here we apply to solve the problem of a book salesman. Here we approach to solve the problem a sales man who lives in Basin must to visit the four cities. Once a month he has to tour among four cities Wald, Bon, Mena and Kiln. The distances from Basin to Wald 120 Milles, Basin to Wald 220 Miles, Basin to Mena 150 Miles and Basin to Kiln 210 Miles
  • 9. The aim of this study is to find the result of problem by hands approach solution by Hungarian method and AMPL model. In Hungarian approach first we change the all diagonal zero’s to dashes or infinity symbols. Now The Distance matrix can be written as
  • 10. Now by the assigning process, allot the Zero from row one and cross the entire zero in that row and column. And find the resultant matrix
  • 11. So we consider the path for salesman is 1-4-5-2-3 -1. Here the distance find 1-4 = 150, 4-5 = 190, 5-2= 130, 2-3 = 80, 3-1 = 220. The total distance cover by the salesman is 770 miles. Now we calculate the path of this problem with AMPL programming. And compare the solution with the hand approach optimal solution by Hungarian method. And compare the solution with the hand approach optimal solution by Hungarian method. AMPL is a modeling programming approach for more complex mathematical problems. It is a declarative and imperative programming style. AMPL is most popular format representation of complex mathematical problems.
  • 12. AMPL PROGRAMMING :- FILE NAME:- tsp.mod minimize z: sum{i in city, j in city} DIST[i,j]*x[i,j]; subject to # exactly one outgoing c1{k in city}: sum{i in city} x[i,k] = 1; # exactly one incoming c2{k in city}: sum{j in city} x[k,j] = 1; # no subtours c3{k in city, j in city: j > 1 and k > 1}: U[j] - U[k] + N*x[j,k] <= N-1; data; param: city: names := 1 "DELHI" 2 "GAJIYABAD" 3 "MEERUT" 4 "NOIDA" 5 "LUDHIYANA" ;
  • 13. param DIST: 1 2 3 4 5 := 1 50000 120 220 150 210 2 120 50000 80 110 130 3 220 80 50000 160 185 4 150 110 160 50000 190 5 210 130 185 190 50000 ; Result:- ampl: include welcome.run CPLEX 12.6.3.0: optimal integer solution; objective 725 24 MIP simplex iterations 0 branch-and-bound nodes z = 725 x [*,*] : 1 2 3 4 5 := 1 0 0 0 1 0 2 1 0 0 0 0
  • 14. 3 0 1 0 0 0 4 0 0 0 0 1 5 0 0 1 0 0 ; U [*] := 1 0 2 4 3 2 4 0 5 1 ; 1 (DELHI) -> 4 (NOIDA) [1.00] 2 (GAJIYABAD) -> 1 (DELHI) [1.00] 3 (MEERUT) -> 2 (GAJIYABAD) [1.00] 4 (NOIDA) -> 5 (LUDHIYANA) [1.00] 5 (LUDHIYANA) -> 3 (MEERUT) [1.00] CPLEX 12.6.3.0: optimal integer solution; objective 725 22 MIP simplex iterations 0 branch-and-bound nodes z = 725 ;
  • 15. Result & Conclusion: - Travelling Salesmen problem is the major concept of Operations research. In this study we solve the TSP with the traditional method and AMPL programming. With both the way and we find the result of TSP and compare the result which is more optimistic. The total distance cover by the salesman is 770 miles with the Hungarian heuristic approach. And to solve the problem with the AMPL programming we found the distance cover by salesmen 725 miles. The AMPL programming provide the minimum distance cover by salesmen which is 45 miles lower than the result by heuristic approach. The result shows that AMPL programming is the better tool to solve the TSP.