• •    

基于汉明距离的改进粒子群算法求解TSP问题

乔屾1,吕志民2,张楠1   

  1. 1. 北京科技大学工程技术研究院
    2. 北京科技大学高效轧制国家工程研究中心
  • 收稿日期:2017-05-11 修回日期:2017-06-26 发布日期:2017-06-26
  • 通讯作者: 乔屾

Improved particle swarm optimization algorithm based on Hamming distance for TSP problem

  • Received:2017-05-11 Revised:2017-06-26 Online:2017-06-26
  • Contact: Shen QIAO

摘要: 在本文中,针对传统粒子群算法不适合求解离散型问题,提出了一种基于汉明距离的改进粒子群算法。该算法保留了粒子群算法的基本思想和流程,并为粒子定义了一种新型的速度表示。同时,为了使算法寻优能力更高,避免迭代过程陷入局部最优无法跳出,设计了2-opt和3-opt算子,结合随机贪婪规则,使求解质量更高,收敛更快。在算法后期,为了增大粒子在整体解空间中的全局搜索能力,采用一部分粒子重新生成的方式去重新探索解空间。为了验证算法的有效性,本文采用了众多TSP标准算例进行测试。结果表明,对于小规模TSP问题,该算法可以找到历史最优解;对于大规模TSP问题,也可以找到满意解,与已知最优解之间偏差度较小。

关键词: 粒子群算法, 汉明距离, 随机贪婪规则, 2-opt算子, 3-opt算子, 旅行商问题

Abstract: In this paper, an improved particle swarm optimization algorithm based on Hamming distance is proposed to solve the discrete problem. The algorithm retains the basic idea and process of particle swarm optimization algorithm, and defines a new velocity representation for particle. At the same time, in order to make the algorithm more efficient and avoid the iterative process falling into the local optimum, the 2-opt and 3-opt operators are designed, and the random greedy rule is used to improve the quality of the solution. In order to increase the global search ability of the particles in the whole solution space, a part of particle re-generation is used to explore the solution space. In order to verify the effectiveness of the algorithm, this paper uses a number of TSP standard examples for testing. The results show that the algorithm can find the optimal solution for the small scale TSP problem. For large-scale TSP problem, we can find a satisfactory solution.

Key words: particle swarm optimization, Hamming distance, random greedy rule, 2-opt operator, 3-opt operator, traveling salesman problem

中图分类号: