In the Traveling Salesman Problem (TSP), you are generally given a list of cities and the distances between each pair of cities. The goal is to find the shortest possible route that visits each city exactly once and returns to the original city. The TSP has a wide range of applications in many different industries, including (but not limited to) optimizing mail and shipping routes, guiding industrial machines, reducing flight times, and mapping genomes. The problem has been studied informally for centuries, and more formally for decades. The TSP has become one of the most popular problems in the fields of mathematics and computer science. Numerous approximation techniques have been studied, ranging from linear programming methods to nature-inspired models. Here, we present a novel N-body approach to the TSP.
Check out some runs, either below or from the sidebar menu!
In the future, I'd like to perform some hyperparameter optimization in order to find ideal parameters for our simulations. Additionally, I'd like to be able to run multiple simulations simulataneously in parallel on the GPU. In general, I'd like to improve code efficiency. I'd also like to investigate other force functions and moving into higher dimensional spaces.
Click on the images below to view runs for that dataset.
The capitals of the lower 48 contiguous states.
29 cities in Bavaria, Germany.
150 random points.