State transition algorithm for traveling salesman problem

Chunhua Yang, Xiaolin Tang, Zhou Xiao-jun, Weihua Gui

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.

Convergence curves for the berlin52 problem, comparing STA, SA, and ACO.

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.

Optimal route for the berlin52.tsp problem instance generated by the STA.

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

Abstract

Discrete version of state transition algorithm is proposed in order to solve the traveling salesman problem. Three special operators for discrete optimization problem named swap, shift and symmetry transformations are presented. Convergence analysis and time complexity of the algorithm are also considered. To make the algorithm simple and efficient, no parameter adjusting is suggested in current version. Experiments are carried out to test the performance of the strategy, and comparisons with simulated annealing and ant colony optimization have demonstrated the effectiveness of the proposed algorithm. The results also show that the discrete state transition algorithm consumes much less time and has better search ability than its counterparts, which indicates that state transition algorithm is with strong adaptability. © 2012 Chinese Assoc of Automati.
BibTeX
@inproceedings{yang2012state,
  author = {Chunhua Yang and Xiaolin Tang and Zhou Xiao-jun and Weihua Gui},
  title = {{State transition algorithm for traveling salesman problem}},
  booktitle = {FedUni},
  year = {2012},
}
Figure