Abstract
A discrete version of the state transition algorithm (STA) is proposed to solve the traveling salesman problem (TSP). Three specialized transformation operators—swap, shift, and symmetry—are introduced to navigate the discrete search space. Convergence analysis and time complexity are considered, and the algorithm is designed to be parameter-less for simplicity and efficiency. Experimental results on standard benchmarks demonstrate that the discrete STA significantly outperforms simulated annealing (SA) and ant colony optimization (ACO) in terms of both solution quality and computational speed, highlighting its strong adaptability and search capabilities.
Introduction
The Traveling Salesman Problem (TSP) is a fundamental NP-hard combinatorial optimization challenge: given a set of cities and the distances between them, the goal is to find the shortest route that visits each city exactly once and returns to the origin. While various heuristics like Genetic Algorithms and Particle Swarm Optimization exist, they often suffer from intensive parameter tuning requirements or slow convergence to local optima. This paper adapts the State Transition Algorithm, originally successful in continuous domains, to provide a more efficient, parameter-free solution for discrete optimization.
Methodology
The discrete STA treats a path sequence as a "state" and applies three geometric transformation operators to explore the neighborhood of a solution:
- Swap Transformation: Randomly exchanges the positions of two or more cities.
- Shift Transformation: Moves a sub-sequence of cities to a new position in the route.
- Symmetry Transformation: Reverses the order of a specific sub-sequence (similar to a 2-opt move).
Search Strategy
Unlike Simulated Annealing, which uses probabilistic acceptance to escape local minima, the STA employs a greedy criterion, accepting new states only if they strictly improve the current fitness (path length). To maintain search diversity and prevent premature convergence, the algorithm uses a Search Enforcement (SE) parameter that dictates the number of times each transformation is attempted per iteration. This design eliminates the need for complex hyperparameter adjustments, making it highly practical.
Experimental Setup and Results
The algorithm was tested on three benchmarks from the TSPLIB library: ulysses16.tsp, att48.tsp, and berlin52.tsp. Comparisons were made against SA and ACO over 20 independent trials for each instance.
As shown in Figure 4, the STA exhibits superior convergence characteristics. In the berlin52 instance, the STA reached a higher-quality solution significantly faster than SA. Quantitatively, the STA achieved a 35x to 40x speedup over its counterparts, completing the berlin52 task in approximately 3.34 seconds compared to ~118 seconds for ACO and ~139 seconds for SA.
Figure 5 displays the final optimized route for the berlin52 problem. Beyond speed and solution quality, the STA demonstrated greater stability, with lower standard deviations across trials compared to SA and ACO, indicating it is less prone to "unlucky" local optima.
Conclusion
The discrete State Transition Algorithm offers a powerful alternative for solving the TSP, combining simplicity with high performance. By utilizing specialized geometric operators, it avoids the pitfalls of complex parameter tuning while delivering massive computational speedups. Future research will focus on scaling the algorithm for larger problem instances and developing global permutation operators to further enhance its global search capabilities.
Summary updated