Home > Operation Research calculators > Assignment Problem example (Using Hungarian method)

6. Travelling salesman problem using diagonal completion method example ( Enter your problem )
  1. Example-1
  2. Example-2
Other related methods
  1. Assignment problem using Hungarian method
  2. Travelling salesman problem using Hungarian method
  3. Travelling salesman branch and bound (penalty) method
  4. Travelling salesman branch and bound method
  5. Travelling salesman nearest neighbor method
  6. Travelling salesman diagonal completion method
  7. Crew assignment problem

5. Travelling salesman nearest neighbor method
(Previous method)
2. Example-2
(Next example)

1. Example-1





Find Solution of Travelling salesman problem using diagonal completion method (MIN case)
Work\Job1234
1x495
26x48
394x9
4589x


Solution:
The number of rows = 4 and columns = 4
   `1`  `2`  `3`  `4`    
 `1` M495
 `2` 6M48
 `3` 94M9
 `4` 589M
   



Step-1: Find out the each row minimum element and subtract it from that row
   `1`  `2`  `3`  `4`    
 `1` M051(-4)
 `2` 2M04(-4)
 `3` 50M5(-4)
 `4` 034M(-5)
   


Step-2: Find out the each column minimum element and subtract it from that column.
   `1`  `2`  `3`  `4`    
 `1` M050
 `2` 2M03
 `3` 50M4
 `4` 034M
   (-0)(-0)(-0)(-1)


Step-3: Calculate the penalty of all 0's (penalty = minimum element of that row + minimum element of that column.)
   `1`  `2`  `3`  `4`    
 `1` `M``0^(color{red}{(0)})``5``0^(color{red}{(3)})`
 `2` `2``M``0^(color{red}{(6)})``3`
 `3` `5``0^(color{red}{(4)})``M``4`
 `4` `0^(color{red}{(5)})``3``4``M`
   


Step-4: List the penalties `P(i,j)` in descending order by value.

`P(2,3)=6`

`P(4,1)=5`

`P(3,2)=4`

`P(1,4)=3`

`P(1,2)=0`

Step-5: The links `(2,3),(4,1),(1,2)` are selected for inclusion in the feasible partial tour.

Step-6: Feasible partial tour contains the following chains
`4->1->2->3`

So our final path is `4->1->2->3->4`

and total distance is `5+4+4+9=22`


This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



5. Travelling salesman nearest neighbor method
(Previous method)
2. Example-2
(Next example)





Share this solution or page with your friends.


 
Copyright © 2023. All rights reserved. Terms, Privacy
 
 

.