| Literature DB >> 30133477 |
Gustavo Erick Anaya Fuentes1, Eva Selene Hernández Gress1, Juan Carlos Seck Tuoh Mora1, Joselito Medina Marín1.
Abstract
This article finds feasible solutions to the travelling salesman problem, obtaining the route with the shortest distance to visit n cities just once, returning to the starting city. The problem addressed is clustering the cities, then using the NEH heuristic, which provides an initial solution that is refined using a modification of the metaheuristic Multi-Restart Iterated Local Search MRSILS; finally, clusters are joined to end the route with the minimum distance to the travelling salesman problem. The contribution of this research is the use of the metaheuristic MRSILS, that in our knowledge had not been used to solve the travelling salesman problem using clusters. The main objective of this article is to demonstrate that the proposed algorithm is more efficient than Genetic Algorithms when clusters are used. To demonstrate the above, both algorithms are compared with some cases taken from the literature, also a comparison with the best-known results is done. In addition, statistical studies are made in the same conditions to demonstrate this fact. Our method obtains better results in all the 10 cases compared.Entities:
Mesh:
Year: 2018 PMID: 30133477 PMCID: PMC6104944 DOI: 10.1371/journal.pone.0201868
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Coordinates instance , TSPLIB [50].
| Coordinates X | Coordinates Y | |
|---|---|---|
| 1 | 16.47 | 96.10 |
| 2 | 16.47 | 94.44 |
| 3 | 20.09 | 92.52 |
| 4 | 22.39 | 93.37 |
| 5 | 25.23 | 97.24 |
| 6 | 22.00 | 96.05 |
| 7 | 20.47 | 97.02 |
| 8 | 17.20 | 96.29 |
| 9 | 16.30 | 97.38 |
| 10 | 14.05 | 98.12 |
| 11 | 16.53 | 97.38 |
| 12 | 21.52 | 95.59 |
| 13 | 19.41 | 97.13 |
| 14 | 20.09 | 94.55 |
Clusters allocation by the minimum distance from the node to the centroid.
| Node | Centroid 1 | Centroid 2 | Centroid 3 | Cluster |
|---|---|---|---|---|
| 1 | 5.85 | 1.78 | 7.23 | 2 |
| 2 | 6.58 | 2.98 | 6.69 | 2 |
| 3 | 5.78 | 4.93 | 2.95 | 3 |
| 4 | 4.65 | 5.70 | 0.71 | 3 |
| 5 | 3.32 | 7.23 | 4.79 | 1 |
| 6 | 1.95 | 4.11 | 3.21 | 1 |
| 7 | 1.82 | 2.47 | 4.75 | 1 |
| 8 | 5.10 | 1.07 | 6.67 | 2 |
| 9 | 5.73 | 1.74 | 8.00 | 2 |
| 10 | 7.95 | 4.11 | 10.31 | 2 |
| 11 | 5.51 | 1.52 | 7.81 | 2 |
| 12 | 2.46 | 3.79 | 2.98 | 1 |
| 13 | 2.73 | 1.42 | 5.47 | 2 |
| 14 | 3.94 | 3.22 | 3.30 | 2 |
Reallocation of centroids.
| CIX | CIY | C2X | C2Y | C3X | C3Y |
|---|---|---|---|---|---|
| 25.23 | 97.24 | 16.47 | 96.10 | 20.09 | 92.54 |
| 22.00 | 96.05 | 16.47 | 94.44 | 22.39 | 93.37 |
| 20.47 | 97.02 | 17.20 | 96.29 | ||
| 21.52 | 95.59 | 16.30 | 97.38 | ||
| 14.05 | 98.12 | ||||
| 16.53 | 97.38 | ||||
| 19.41 | 97.13 | ||||
| 20.09 | 94.55 |
Reallocation of centroids.
| CIX | CIY | C2X | C2Y | C3X | C3Y |
|---|---|---|---|---|---|
| 25.23 | 97.24 | 16.47 | 96.10 | 20.09 | 92.54 |
| 22.00 | 96.05 | 16.47 | 94.44 | 22.39 | 93.37 |
| 20.47 | 97.02 | 17.20 | 96.29 | 20.09 | 94.55 |
| 21.52 | 95.59 | 16.30 | 97.38 | ||
| 14.05 | 98.12 | ||||
| 16.53 | 97.38 | ||||
| 19.41 | 97.13 |
NEH start cost cluster 2.
| Node | 1 | 2 | 8 | 9 | 10 | 11 | 13 | Cost |
|---|---|---|---|---|---|---|---|---|
| 1 | 0.0 | 1.6 | 0.7 | 1.2 | 3.1 | 1.2 | 3.1 | 11.2 |
| 2 | 1.6 | 0.0 | 1.9 | 2.9 | 4.4 | 2.9 | 3.9 | 17.9 |
| 8 | 0.7 | 1.9 | 0.0 | 1.4 | 3.6 | 1.2 | 2.3 | 11.4 |
| 9 | 1.2 | 2.9 | 1.4 | 0.0 | 2.3 | 0.2 | 3.1 | 11.3 |
| 10 | 3.1 | 4.4 | 3.6 | 2.3 | 0.0 | 2.5 | 5.4 | 21.6 |
| 11 | 1.2 | 2.9 | 1.2 | 0.2 | 2.5 | 0.0 | 2.8 | 11.2 |
| 13 | 3.1 | 3.9 | 2.3 | 3.1 | 5.4 | 2.8 | 0.0 | 20.9 |
NEH initial nodes sortered for cluster 2 output nodes.
| Output nodes | Cost |
|---|---|
| 11.00 | 11.21 |
| 1.00 | 11.25 |
| 9.00 | 11.37 |
| 8.00 | 11.44 |
| 2.00 | 17.92 |
| 13.00 | 20.93 |
| 10.00 | 21.61 |
Permutation 11–1, cluster2.
| Permutations | Cost |
|---|---|
| 11–1 | 1.2814 |
| 1–11 | 1.2814 |
permutations 9-11-1, cluster2.
| Permutations | Cost |
|---|---|
| 9-11-1 | 1.5114 |
| 11-1-9 | 1.5212 |
| 11-1-9 | 2.5726 |
Permutation 8-9-11-1, cluster2.
| Permutation | Cost |
|---|---|
| 8-9-11-1 | 2.9249 |
| 9-8-11-1 | 3.9744 |
| 9-11-8-1 | 2.2638 |
| 9-11-1-8 | 2.2657 |
Permutation 2-9-11-8-1, cluster2.
| Permutation | Cost |
|---|---|
| 2-9-11-8-1 | 5.2087 |
| 9-2-11-8-1 | 7.9193 |
| 9-11-2-8-1 | 5.9138 |
| 9-11-8-2-1 | 5.1583 |
| 9-11-8-1-2 | 3.9238 |
Permutation 13-9-11-8-1-2, cluster2.
| Permutation | Cost |
|---|---|
| 13-9-11-8-1-2 | 7.0438 |
| 9-13-11-8-1-2 | 9.7046 |
| 9-11-13-8-1-2 | 7.8994 |
| 9-11-8-13-1-2 | 8.6489 |
| 9-11-8-1-13-2 | 9.3639 |
| 9-11-8-1-2-13 | 7.9087 |
Permutation 10-13-9-11-8-1-2, cluster2.
| Permutation | Cost |
|---|---|
| 10-13-9-11-8-1-2 | 12.4945 |
| 13-10-8-9-11-1-2 | 13.6786 |
| 13-8-10-9-11-1-2 | 11.5472 |
| 13-8-9-10-11-1-2 | 11.6758 |
| 13-8-9-11-10-1-2 | 11.4081 |
| 13-8-9-11-1-10-2 | 12.8459 |
| 13-8-9-11-1-2-10 | 11.3536 |
Permutation node 13 in cluster2.
| Permutation | Cost |
|---|---|
| 13-8-9-11-1-2-10 | 11.3536 |
| 8-13-9-11-1-2-10 | 13.0601 |
| 8-9-13-11-1-2-10 | 14.7702 |
| 8-9-11-13-1-2-10 | 13.7140 |
| 8-9-11-1-13-2-10 | 14.4295 |
| 8-9-11-1-2-13-10 | 14.0205 |
| 8-9-11-1-2-10-13 | 14.4400 |
Permutation node 8 in cluster2.
| Permutation | Cost |
|---|---|
| 8-13-9-11-1-2-10 | 13.0601 |
| 13-8-9-11-1-2-10 | 11.3536 |
| 13-9-8-11-1-2-10 | 13.1588 |
| 13-9-11-8-1-2-10 | 11.4482 |
| 13-9-11-1-8-2-10 | 11.7790 |
| 13-9-11-1-2-8-10 | 11.9232 |
| 13-9-11-1-2-8-10 | 14.3388 |
Permutation node 9 in cluster2.
| Permutation | Cost |
|---|---|
| 9-13-8-11-1-2-10 | 14.1096 |
| 13-9-8-11-1-2-10 | 13.1588 |
| 13-8-9-11-1-2-10 | 11.3536 |
| 13-8-11-9-1-2-10 | 11.2294 |
| 13-8-11-1-9-2-10 | 13.5657 |
| 13-8-11-1-2-9-10 | 11.8986 |
| 13-8-11-1-2-9-10 | 13.3581 |
Distance from centroid 1 to each centroid.
| Centroid 2 | Centroid 3 | |
|---|---|---|
| 5.67611663 | 3.33640525 |
Distance from Cc to each node.
| Node | X | Y | Distance to Centrode 1 |
|---|---|---|---|
| 14 | 20.09 | 94.55 | 2.94 |
| 3 | 20.09 | 92.54 | 4.52 |
| 4 | 22.39 | 93.37 | 3.11 |
Distance from centroid 2 to cluster 1 nodes.
| Node | X | Y | Distance to centroid 2 |
|---|---|---|---|
| 7 | 20.47 | 97.02 | 3.56 |
| 12 | 21.52 | 95.59 | 2.21 |
| 6 | 22 | 96.05 | 2.81 |
| 5 | 25.23 | 97.24 | 5.77 |
Distance node 14 to close nodes (3,4).
| Node | Distance to node 14 |
|---|---|
| 3 | 2.01 |
| 4 | 2.59 |
Distance node 12 to close nodes (6,7).
| Node | Distance to node 12 |
|---|---|
| 6 | 0.6648 |
| 7 | 1.7741 |
Fig 1Union of clusters through nearby nodes for MRSILS.
Distance ClusterEnd2 to cluster 2 nodes.
| Node | Distance to node 14 |
|---|---|
| 13 | 4.80 |
| 1 | 6.52 |
| 9 | 7.29 |
| 11 | 7.10 |
| 8 | 5.96 |
| 2 | 6.02 |
| 10 | 9.60 |
Distance between 8 and 10 to 13 nodes.
| Node | Distance to node 13 |
|---|---|
| 8 | 2.3643 |
| 10 | 5.4507 |
Fig 2Union of clusters and final route for MRSILS.
Comparison between CTSPMRSILS and GA, parameter cost, minimum values.
| Cost (Distance) | ||||||
|---|---|---|---|---|---|---|
| CTSPMRSILS | GA | CTSPMRSILS | GA | CTSPMRSILS | GA | |
| Instance | 30 runs | 30 runs | 50 runs | 50 runs | 100 runs | 100 runs |
| ei51 | 491.04 | 506.07 | 442.78 | 665.85 | 442.78 | 486.66 |
| berlyn52 | 8226.30 | 8285.09 | 7785.53 | 8285.09 | 7440.13 | 8040.86 |
| eil76 | 613.81 | 663.04 | 586.94 | 665.85 | 599.16 | 653.71 |
| pr76 | 113868.00 | 138224.12 | 111083.63 | 137632.47 | 117142.17 | 137632.47 |
| kroE100 | 24986.22 | 28857.30 | 23247.92 | 29774.02 | 24582.31 | 28857.29 |
| kroB200 | 34537.99 | 47513.69 | 34523.88 | 47513.69 | 33811.15 | 47513.69 |
| gil262 | 2857.89 | 4079.95 | 2785.60 | 4079.95 | 2785.60 | 4058.39 |
| lin318 | 49847.67 | 70550.33 | 49707.42 | 70550.33 | 49407.42 | 70550.33 |
| pcb442 | 61465.07 | 98082.15 | 61733.09 | 98082.15 | 61456.08 | |
| rat783 | 10463.17 | 10510.75 | 10593.16 | |||
*The best results are shaded
Comparison between CTSPMRSILS and GA, parameter time, minimum values.
| Time (seconds) | ||||||
|---|---|---|---|---|---|---|
| CTSPMRSILS | GA | CTSPMRSILS | GA | CTSPMRSILS | GA | |
| Instance | 30d-min | 30d-min | 50d-min | 50d-min | 100d-min | 100d-min |
| ei51 | 2.3944 | 26.1599 | 2.4114 | 21.5184 | 2.3354 | 21.790338 |
| berlyn52 | 0.6235 | 15.3622 | 0.6639 | 17.127 | 0.5895 | 16.9816 |
| eil76 | 6.8367 | 74.7216 | 6.9575 | 75.044 | 6.6536 | 77.5025 |
| pr76 | 1.5168 | 73.987037 | 1.5526 | 60.969714 | 1.6365 | 59.8227 |
| kroE100 | 13.575 | 143.9848 | 13.9632 | 140.8241 | 13.386 | 145.0725 |
| kroB200 | 18.6667 | 817.2188 | 75.50791 | 861.5537 | 73.4575 | 852.7318 |
| gil262 | 163.469459 | 1554.1547 | 158.7468881 | 1542.3231 | 152.8723163 | 1583.0809 |
| lin318 | 256.4025 | 2741.5503 | 63.0805 | 2841.9702 | 274.5424 | 2812.898 |
| pcb442 | 156.691797 | 5755.6338 | 166.6814 | 6265.4428 | 149.0371 | |
| rat783 | 661.92 | 712.58 | 705.09 | |||
Confidence intervals and p value, cost.
| Cost | ||||||
|---|---|---|---|---|---|---|
| 30 runs | 50 runs | 100 runs | ||||
| Confidence interval | p-value | Confidence interval | p-value | Confidence interval | p-value | |
| ei51 | (-50.60, -17.22) | 0.0000 | (-59.48, -30.54) | 0.0000 | (-43.52, -25.18) | 0.0000 |
| berlyn52 | (-1336, -664) | 0.0000 | (-1212, -703) | 0.0000 | (-1117.1, -747.0) | 0.0000 |
| eil76 | (-80.24, -54.93) | 0.0000 | (-92.11, -66.55) | 0.0000 | (-79.31, -63.21) | 0.0000 |
| pr76 | (-28595, -20033) | 0.0000 | (-26384, -20620) | 0.0000 | (-24328, -20151) | 0.0000 |
| kroE100 | (-6767, -5044) | 0.0000 | (-6305, -4984) | 0.0000 | (-6481, -5509) | 0.0000 |
| kroB200 | (-14854, -13247) | 0.0000 | (-14715, -13491) | 0.0000 | (-14905, -13694) | 0.0000 |
| gil262 | (-1400.9, -1279.8) | 0.0000 | (-1413.6, 1308.1) | 0.0000 | (-1401.1, -1330.5) | 0.0000 |
| lin318 | (-26517, -23757) | 0.0000 | (-26937, -24712) | 0.0000 | (-26052, -24519) | 0.0000 |
| pcb442 | (-38309, -36287) | 0.0000 | (-38177, -36699) | 0.0000 | ||
*The non-shaded results are those where equal variances are assumed to perform the means test, the shaded are with unequal variances
Confidence intervals and p-value, time.
| 30 runs | 50 runs | 100 runs | ||||
|---|---|---|---|---|---|---|
| Confidence interval | p-value | Confidence Interval | p-value | Confidence interval | p-value | |
| ei51 | (-25.887, -25.227) | 0.00 | (-24.450, 23.838) | 0.00 | (-24.9907, -24.6556) | 0.00 |
| berlyn52 | (-26.340, -23.925) | 0.00 | (-27.923, -26.453) | 0.00 | (-27.449, -26.711) | 0.00 |
| eil76 | (-70.425, -69.402) | 0.00 | (-70.448, -69.457) | 0.00 | (-77.870, -76.932) | 0.00 |
| pr76 | (-72.9670, -72.6858) | 0.00 | (-70.992, -70.031) | 0.00 | (-70.202, -69.069) | 0.00 |
| kroE100 | (-133.414, -131.414) | 0.00 | (-128.697, -127.451) | 0.00 | (-133.125, -132.072) | 0.00 |
| kroB200 | (-818.23, -810.95) | 0.00 | (-795.74, -785.87) | 0.00 | (-782.791, -779.615) | 0.00 |
| gil262 | (-1397.38, -1390.80) | 0.00 | (-1389.92, -1384.37) | 0.000 | (-1432.69, -1427.50) | 0.00 |
| lin318 | (-2537.5, -2484.2) | 0.00 | (-2833.48, -2809.21) | 0.00 | (-2586.94, -2564.63) | 0.00 |
| pcb442 | (-5974.1, -5920.2) | 0.00 | (-6303.5, -6218.7) | 0.00 | ||
*The non-shaded results are those where equal variances are assumed to perform the means test, the shaded are with unequal variances
Relative error, piethtraankul [11] and CTSPMRSILS.
| Instance | k-means- Piethrankul [ | CTSPMRSILS | Best known in TSLIB[ | Relative error | Relative error |
|---|---|---|---|---|---|
| ei51 | 484 | 442.7835 | 426 | 13.62% | 3.94% |
| berlyn52 | 8416 | 7440.1273 | 7542 | 11.59% | -1.35% |
| eil76 | 624 | 586.938 | 538 | 15.99% | 9.10% |
| pr76 | 125243 | 111083.63 | 108159 | 15.80% | 2.70% |
| kroE100 | 25918 | 23247.92 | 22068 | 17.45% | 5.35% |
| kroB200 | 34879 | 33811.15 | 29437 | 18.49% | 14.86% |
| gil262 | 2801 | 2785.6 | 2378 | 17.79% | 17.14% |
| lin318 | 51746 | 49707.4202 | 42029 | 23.12% | 18.27% |
| pcb442 | 63851 | 61465.0688 | 50778 | 25.75% | 21.05% |
| rat783 | 14370 | 10463.1679 | 8806 | 63.18% | 18.82% |
*The relative error is with respect to the best-know in TSLIB[50]