Heuristic method for solving the 'travelling salesman problem'

The NORTH-SOUTH method addresses the computational challenges of the Traveling Salesman Problem by statistically separating cities and connecting them efficiently, resulting in faster and more optimal solutions for large city sets.

WO2024177493A2PCT designated stage expired Publication Date: 2024-08-29ITTAH MAKHLOUF
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/MA2024/000002
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-20
Filing Date
2024-02-06
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

The Traveling Salesman Problem (TSP) is an NP-complete optimization problem where finding an exact solution quickly is impractical due to its NP-hard nature, leading to high computational complexity, especially for large numbers of cities, with existing algorithms often resulting in suboptimal solutions or requiring excessive time to find reasonable approximations.

Method used

The proposed NORTH-SOUTH method involves data analysis, statistical separation of cities into two categories, determination of extreme points, and a specific algorithmic approach to connect these points, reducing combinatorial calculations and avoiding the nearest neighbor method, to efficiently determine the shortest path that visits each city once and returns to the starting point.

Benefits of technology

This method significantly reduces calculation time, often produces more optimal results, can handle a large number of cities, and ensures the optimality of the circuit regardless of the starting point, while eliminating aberrations such as remote connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure IMGF000012_0001
    Figure IMGF000012_0001
  • Figure IMGF000003_0001
    Figure IMGF000003_0001
  • Figure 00000015_0000
    Figure 00000015_0000
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

[0001] HEURISTIC METHOD

[0002] PROBLEM RESOLUTION

[0003] OF THE TRAVELLING SALESMAN

[0004] Description Field to which the invention relates

[0005] The problem is the traveling salesman problem.

[0006] It is an optimization problem in the field of Operations Research, Applied Mathematics and Computer Science and can be summarized as follows: given a list of cities, and distances between all pairs of cities, determine a shortest path that visits each city only once and ends in the starting city.

[0007] I propose to give a new heuristic method for solving this problem. State of the prior art

[0008] The Traveling Salesman Problem (TSP) is one of the most common combinatorial optimization problems. The goal is to find the shortest route starting from a starting city, visiting each city once, and returning to the starting city.

[0009] Despite the simplicity of the statement, there is no known algorithm that allows us to find an exact solution quickly in all cases.

[0010] More precisely, no polynomial-time algorithm is known, and the decision version of the traveling salesman problem is an NP-complete problem, which is an indication of its difficulty.

[0011] It is one of the central problems in computer science and operations research. It is well known to be NP-hard and has been researched from different perspectives, including approximation, exponential-time algorithms, and heuristics.

[0012] The most straightforward solution would be to try all permutations (ordered combinations) and see which is cheapest (using brute force search). The running time has a complexity of order O(n!) more precisely (n-1) ! / 2 the factorial of the number of cities, so this solution becomes impractical even for only 20 cities. The table gives the computation time as a function of the number of cities (assuming that computing a path takes 1 microsecond).

[0013] Traditional lines of attack for NP-hard problems are:

[0014] • Design exact algorithms that work reasonably fast only for small problems.

[0015] • Design “sub-optimal” or heuristic algorithms, i.e. algorithms that provide approximate solutions within a reasonable time.

[0016] • Search for special cases for the problem (“subproblems”) for which optimal or exact heuristics are possible

[0017] The different heuristic methods and algorithms the Held-Karo algorithm

[0018] One of the earliest applications of dynamic programming is the Held-Karp algorithm which solves the problem in time O(n 2 2 n ). In practice, the TSP is often solved using local search heuristics, in which one starts with an arbitrary Hamiltonian cycle and then modifies the cycle using local modifications in a series of steps. After each step, the cycle distance should improve; when the algorithm finds no improvement, it stops.

[0019] The k-oot heuristic

[0020] One of the most successful examples of this approach is the k-opt heuristic, in which an improved k-move is performed at each step. Given a Hamiltonian cycle H in a graph G = (V, E), a k-move is an operation that removes k edges from H and adds k edges from G so that the resulting edge set HO is a new Hamiltonian cycle. The k-move improves if the weight of HO is smaller than the weight of H.

[0021] Other approaches include:

[0022] • Various branch-and-bound algorithms, which can be used to process TSPs containing 40 to 60 cities. • Progressive improvement algorithms using techniques reminiscent of linear programming. Works well up to 200 cities.

[0023] • Branch-and-bound and problem-specific cut generation (branch-and-cut) implementations: This is the method of choice for solving large instances. This approach currently holds the record, solving an instance with 85,900 cities, see Applegate et al. (2006).

[0024] An exact solution for 15,112 German cities in TSPLIB was found in 2001 using the cutting-plane method proposed by George Dantzig, Ray Fulkerson, and Selmer M. Johnson in 1954, based on linear programming. The calculations were performed on a network of 110 processors located at Rice University and Princeton University. The total computation time was equivalent to 22.6 years on a single 500 MHz Alpha processor.

[0025] In May 2004, the TSP problem, which was to travel to all 24,978 cities in Sweden, was solved: a circuit about 72,500 kilometers long had been discovered and it was proven that no shorter circuit existed.

[0026] In March 2005, the traveling salesman's problem of visiting all 33,810 points on a printed circuit board was solved with Concorde TSP Solver: a circuit of 66,048,945 units was found and it was proven that no shorter circuit existed. The calculation took about 15.7 CPU years (Cook et al. 2006).

[0027] In April 2006, an instance with 85,900 points was solved using Concorde TSP Solver, representing over 136 CPU years, see Applegate et al. (2006). 1.3 Heuristics and Approximation Algorithms Various heuristics and approximation algorithms have been designed that have been shown to quickly find good solutions.

[0028] Modern methods can find solutions to extremely large problems (millions of cities) in a reasonable time, with a probability of 2-3% of the optimal solution.

[0029] Several categories of heuristics are recognized as: greedy algorithm

[0030] The greedy strategy (which is computationally complex) is the following heuristic: "At each step of the journey, visit the nearest unvisited city." This heuristic does not aim to find the best solution, but it ends in a reasonable number of steps; finding an optimal solution to such a complex problem usually requires an unreasonable number of steps. In mathematical optimization, greedy algorithms optimally solve combinatorial problems with the properties of matroids and give constant-factor approximations to optimization problems with the submodular structure.

[0031] Nearest Neighbor Algorithm The nearest neighbor algorithm was one of the first algorithms used to approximately solve the traveling salesman problem. In this problem, the salesman starts in a random city and repeatedly visits the nearest city until all have been visited. The algorithm quickly gives a short tour, but usually not the best one.

[0032] Here are the steps of the algorithm:

[0033] 1. Initialize all vertices as unvisited.

[0034] 2. Select an arbitrary vertex, set it as the current u vertex.

[0035] Mark u as visited.

[0036] 3. Find the shortest edge connecting the current vertex u and an unvisited vertex v.

[0037] 4. Set v as the current vertex u. Mark v as visited.

[0038] 5. If all vertices in the domain are visited, finish. Otherwise, go to step 3.

[0039] The sequence of visited vertices is the output of the algorithm.

[0040] The nearest neighbor algorithm is easy to implement and runs quickly, but it can sometimes miss shorter routes that are easily noticed with human acumen, due to its "greedy" nature. As a general guide, if the last steps of the tour are comparable in length to the first steps, then the tour is reasonable; if they are much longer, it is likely that much better tours exist. Another check is to use an algorithm such as the lower bound algorithm to estimate whether this tour is good enough.

[0041] In the worst case, the algorithm results in a tour that is much longer than the optimal tour. To be precise, for each constant r, there exists an instance of the traveling salesman problem such that the tour duration calculated by the nearest neighbor algorithm is greater than r times the optimal tour duration. Moreover, for each number of cities, there is an assignment of distances between cities for which the nearest neighbor heuristic produces the worst possible tour. (If the algorithm is applied on each vertex as a starting vertex, the best path found will be better than at least N / 2- 1 other tours, where N is the number of vertices.)

[0042] The nearest neighbor algorithm may not find a feasible visit at all, even when one exists. Nearest Insertion algorithm

[0043] Insertion algorithms add new points between existing points of a tour as it grows.

[0044] An implementation of closest insertion starts with two cities. It then repeatedly finds the city not already in the tour that is closest to any city in the tour, and places it between the two cities that would make the resulting tour as short as possible. It stops when there are no more insertions. The Cheapest Insertion algorithm

[0045] Like closest insertion, cheapest insertion also starts with two cities. It then finds the city not already in the tour that, when placed between two connected cities in the subtour, will result in the shortest possible tour. It inserts the city between the two connected cities, and repeats until there are no more insertions.

[0046] The cheapest insertion algorithm is O(n^2 Iog2(n))

[0047] The Random Insertion algorithm

[0048] Random insertion also starts with two cities. It then randomly selects a city not already in the tour and inserts it between two cities in the tour. Rinse, wash, repeat.

[0049] Time complexity: O(n^2)

[0050] The Farthest Insertion algorithm

[0051] Unlike other insertions, the furthest insertion starts with a city and connects it to the city furthest from it.

[0052] It then repeatedly finds the city not already in the tour that is farthest from any city in the tour, and places it between the two cities that would make the resulting tour the shortest possible.

[0053] Time complexity: O(n^2)

[0054] Christofides Algorithm

[0055] The Christofides algorithm is a heuristic with a 3 / 2 approximation guarantee. In the worst case, the visit does not exceed 3 / 2 of the optimal visit duration.

[0056] Due to its speed and 3 / 2 approximation guarantee, the Christofides algorithm is often used to construct an upper bound, such as an initial circuit that will be further optimized using the visit improvement heuristic, or as an upper bound to help limit the search space for branch-and-cut techniques used in optimal route finding.

[0057] For this to work, the distances between cities must be symmetrical and obey the triangle inequality, which you'll find in a typical x,y coordinate plane (metric space). Published in 1976, it continues to hold the record for the best approximation ratio for metric space.

[0058] The algorithm is complex [2] . Its time complexity is O(n^4)

[0059] 2-Opt method A problem is called k-Optimal if we cannot improve the tour by changing k edges.

[0060] Each k-Opt iteration takes time.O(n^k)

[0061] 2-Opt is a local search tour improvement algorithm proposed by Croes in 1958. [3] This stems from the idea that visits with intersecting edges are not optimal. 2-opt will consider all possible 2-edge exchanges, swapping 2 edges when it results in an improved visit.

[0062] 2-opt takes time per iteration. O(n^2)

[0063] 3-Opt method

[0064] 3-opt is a generalization of 2-opt, where 3 edges are swapped at a time. When 3 edges are removed, there are 7 different ways to reconnect them, so they are all considered.

[0065] The time complexity of 3-opt is for each iteration 3-opt.O(n^3)

[0066] Lin-Kerniqham Heuristic

[0067] Lin-Kernighan is an optimized heuristic for improving k-Opt tours.

[0068] He takes a ride and tries to improve it.

[0069] By allowing some of the intermediate visits to be more expensive than the initial tour, Lin-Kernighan can go well beyond the point where a simple 2-Opt would end up [4] .

[0070] LKH

[0071] Implementations of the Lin-Kernighan heuristic such as Keld Helsgaun's LKH may use "walking" sequences of 2-Opt, 3-Opt, 4-Opt, 5-Opt, "kicks" to escape local minima, sensitivity analysis to direct and restrict the search, and other methods.

[0072] LKH has 2 versions; the original and LKH-2 released later. Although it is a heuristic and not an exact algorithm, it often produces optimal solutions. It has converged to the optimal route of every tower with a known optimal length. At one time or another, it has also set records for every problem with unknown optima, such as the World TSP, which has 1,900,000 locations. Chained Lin-Kerniqham

[0073] Chained Lin-Kernighan is a route improvement method built on the Lin-Kernighan heuristic.

[0074] 1.3. Description of the invention

[0075] The resolution method will be called *' the NORTH-SOUTH method *'

[0076] The method I propose will take place in .... stages from data analysis to the creation of the optimal circuit.

[0077] 1.3.1 Data analysis

[0078] The first step before starting any mathematical or statistical processing is data analysis because data analysis shows what type of data we are dealing with and allows us to better choose the algorithm to apply to it such as:

[0079] • The form of the data

[0080] The shape of the data includes determining whether the data forms a circle, a square, a rectangle, a symmetrical geometric shape, or a potato-shaped or other scatter.

[0081] • Data density

[0082] This analysis allows us to know the density of the data. It is a complementary analysis that may or may not be used when further solving the problem.

[0083] • Data distribution

[0084] These analyses are done by simple calculations which subsequently help the algorithm to determine the data separation technique.

[0085] 1.3.2 data separation

[0086] The method consists of separating the data (cities) by a classification method based on statistical methods.

[0087] The separation method consists of analyzing the data, their distribution on the plane, the correlation between them, the spacings between them, their density and depending on all this, separating them into 2 categories which we will call the points to the NORTH and the points to the SOUTH.

[0088] Indeed, depending on the distribution of the data, a statistical separation method can be applied such as linear regression, multi-stage polynomial regression, logarithmic regression, exponential regression, etc.

[0089] Depending on a criterion of satisfaction of the degree of correlation, we will accept the Satisfactory Regression and we will decide that all the points above this trend curve will be considered as NORTH points and that all the points below the curve will be considered as the SOUTH points. Artificial Intelligence is used because the calculation method changes but the principle of separating the data is always present. A complex function is thus created, this function allows to draw a straight line or a curve in polynomial form of different degree or exponential or logarithmic or other.

[0090] Figure 2 gives a view of the separation curve and therefore of the points to the NORTH and the points to the SOUTH.

[0091] 1.3.3 Adjusting the separation

[0092] The adjustment method is supposed to move the separation line or curve in order to create a better separation of the points. This step is useful. It is a translation of the curve to create the widest "corridor" between the points.

[0093] This step is not mandatory when the correlation is already "optimal". Artificial Intelligence is used to detect the widest corridor but the principle of searching for it is the main one.

[0094] At this point, the function creating the separation curve is clearly defined, it is this which will make it possible to determine the points to the NORTH and the points to the SOUTH by calculating the deviations in the Y and the f(Y)=Y'

[0095] 1.3.4 determination of the 4 extreme points

[0096] Once the NORTH points and the SOUTH points are determined, the 2 ème step will be to determine 4 extreme points (2 extreme points in the NORTH, and 2 extreme points in the SOUTH) which will be coded as follows: ENO - Extreme North West

[0097] ENE - Far North East

[0098] ESO - Far Southwest

[0099] ESE - Far South East

[0100] These 4 points constitute the 2 starting points (ENO and ESO) those which are completely to the west (west is a notion just to explain, it is not specifically the most westerly points) and the arrival points (ENE and ESE) those which are completely to the east (east is a notion just to explain, it is not specifically the most easterly points)

[0101] To determine the 2 extreme points of the NORTH, we analyze the distances between the points and the distance with the separation curve (this is the curve that was defined to delimit and separate the points into two categories) and its position relative to the other points of the NORTH and we determine 2 points ENO and ENE. The determination of these extreme points is very important for the rest of the algorithm

[0102] To determine the 2 extreme points of the SOUTH,

[0103] We do exactly the same as for the NORTH points, therefore as described in paragraph 3.2.1. Here, at the end of this step of the method, we have separated the points into 2 categories and we have determined 4 decisive points for the rest of the method, see figure 4. 1.3.5 Connect the NORTH points between them, starting with ENO and ending with ENE This method therefore consists of connecting 2 ENO and ENE points by passing through several points (named algorithm 131) Algorithm 131 is based on the fact that we take the starting point, in this case the ENO point, then we take the 3 closest points (the closest does not mean those with the closest distance BUT which have a certain characteristic (we will develop further downstream how the algorithm selects the 3 points to take into account for the calculation of NEXT POINT) and finally another point.Indeed, once we have selected these 5 points, we leave combinatorial calculations on 3 circuit combinations, we determine the shortest circuit and therefore WE DETERMINE THE POINT “' NEXT POINT ' This new point is taken to be considered as the new starting point and we restart the procedure of SELECTION OF 5 (1 + 3 + 1 ) POINTS CALCULATION OF THE COMBINATIONS DETERMINATION OF THE DESTINATION POINT “' NEXT POINT “' And so on until we arrive at the ENE point (because we started with ENO to arrive at ENE) Algorithm 131 is more complex than we think but it does not make a mistake to connect the points between them WITHOUT forgetting one on the way see figure 5. It does not use the “' nearest neighbor to go “' method. 1.3.6 Connect the SOUTH points between them starting with ESO and ending with ESE We use the same algorithm as that used to connect the North points between them, that is to say algorithm 131 And we determine the path from ESO (Extreme South West) to ESE (Extreme South East), we obtain a SOUTH path see figure 6. 1.3.7 Connect ENO with ESQ and ENE with ESE At this stage of the method, we simply connect the 2 EAST points to each other (that is to say ENE with ESE) and we connect the 2 WEST points between them (that is to say ENO with ESO). And we determine the path from ESO (Extreme South West) to ESE (Extreme South East), we obtain a SOUTH path see figure 7.

[0104] 1.3.8 Brief presentation of figures

[0105] Figure 1: represents the position of points (cities) on an x,y axis

[0106] Figure 2: represents the straight line that separates the points, it is a trend curve of degree 1, it has a good correlation but does not give a good "corridor"

[0107] Figure 3: represents the readjusted trend line which makes it possible to create the widest corridor and therefore to determine once and for all, the points which will be in the NORTH and the points which will be in the SOUTH

[0108] Figure 4: represents the determination of the extreme points. In the NORTH in particular the ENO point (Extreme North West) and the ENE point (Extreme North East) and in the SOUTH, the ESO point (Extreme South West) and the ESE point (Extreme South East).

[0109] Figure 5: represents the path traced to the NORTH by algorithm 131 which makes it possible to determine the NEXT POINT and therefore to give a sequence to the points.

[0110] Figure 6: represents the path traced to the SOUTH by algorithm 131 which makes it possible to determine the NEXT POINT and therefore to give a sequence to the points.

[0111] Figure 7: represents the connection between the 4 points 2 to 2.

[0112] 1.3.7 Advantages of the invention over the prior art

[0113] Compared to existing methods, this method has some advantages.

[0114] • Calculation time is faster

[0115] • In most configurations, results are more optimal

[0116] • A large number of cities can be processed

[0117] • The departure city does not matter because the circuit is optimal regardless of the departure point

[0118] • Aberrations are eliminated, such as the connection between two very distant cities; this option is not even taken into account.

[0119] 1.3.8 the different

[0120] The shortest path method in general can be useful for solving problems like:

[0121] • The traveling salesman problem (itinerant traveler)

[0122] • The problem of optimizing machine tools for drilling holes on boards

[0123] • The problem of optimizing delivery rounds

[0124] • Etc...

Claims

Claims 1) Heuristic method for solving the traveling salesman problem characterized by the following steps: - Separation of data by a complex function, separation into 2 categories NORTH and SOUTH - The determination of 4 extreme points. - The calculation logic to connect the NORTH points together and the same calculation logic to connect the SOUTH points together. - Connection of the 4 extreme points 2 to 2. 2) Heuristic method for solving the traveling salesman problem according to claim 1, characterized by: Approach to creating parallel curves passing through each point (as many parallel curves as there are points) and determining the 2 parallel curves with the widest space between them. We will call this the widest corridor. All points above this corridor will be called NORTH points and all points below this corridor will be called SOUTH points. 3) Heuristic method for solving the traveling salesman problem according to claim 1, characterized by: - The determination of 4 extreme points of which 2 points will be NORTH and 2 points will be SOUTH. The technique for determining the 4 points ENE, ESE, ENO, ESO ENE - Far North East ESE - Far South East ENO - Far North West ESO - Extreme Southwest which can only be determined once the equation of the dividing line (or curve) has been determined. Indeed, the 4 points depend on their position and their distance from the dividing line (or curve). The 4 points are not automatically the closest. 4) Heuristic method for solving the traveling salesman problem according to claim 1, characterized by: The NEXT POINT calculation method, this calculation method which takes into account 5 points including 1 starting point and 4 nearby points, and which determines the point which will be retained as the nearby destination. 30