第 29 卷 第 10 期
Vol. 29 No. 10
控 制 与 决 策
Control and Decision
2014 年 10 月
Oct. 2014
一种面向对象的多角色蚁群算法及其 TSP 问题求解
文章编号: 1001-0920 (2014) 10-1729-08 DOI: 10.13195/j.kzyjc.2013.1173
杜鹏桢, 唐振民, 孙 研
(南京理工大学 计算机科学与工程学院,南京 210094)
摘 要: 蚁群算法的改进大多从算法本身入手或与其他算法相结合, 未充分利用待解决问题所包含的信息, 提升效
果较为有限. 对此, 提出一种面向对象的多角色蚁群算法. 该算法充分利用旅行商问题 (TSP) 对象的空间信息, 采用
𝑘-均值聚类将城市划分为不同类别; 同时, 对蚁群进行角色划分, 不同角色的蚁群针对城市类别关系执行各自不同的
搜索策略, 增强了蚁群的搜索能力, 较大幅度地提高了求解质量. 每进行一次迭代, 仅各角色最优个体进行信息素更
新, 防止算法退化为随机的贪婪搜索. 将精英策略与跳出局部最优相结合可避免算法的停滞. 50 个经典 TSP 实例仿
真实验表明: 所提出的算法可以在较少的迭代次数内获得或非常接近于问题的已知最优解; 对于大规模 TSP 问题所
得结果也远超所对比的算法.
关键词: 蚁群算法;面向对象;多角色;𝑘-均值;旅行商问题;2-Opt
中图分类号: TP18 文献标志码: A
An object-oriented multi-role ant colony optimization algorithm for
solving TSP problem
DU Peng-zhen, TANG Zhen-min, SUN Yan
(College of Computer Science and Engineering,Nanjing University of Science and Technology,Nanjing 210094, China.
Correspondent:DU Peng-zhen,E-mail:h.k@foxmail.com)
Abstract: Most of the improvements on the ant colony algorithm are based on the algorithm itself or combined with other
algorithms, which underutilizes information of the problems to be solved, so the effect is not ideal. An object-oriented
multi-role ant colony optimization(OMACO) algorithm is proposed to deal with the characteristics of traveling salesman
problem(TSP) on the basis of 𝑘-means, which divides the cities into different categories with full use of the TSP spatial
information and divides the colony into different roles. Each role solves the problem independently according to their
respective strategies, which enhances the algorithm’s search capability and improves the quality of solution. After each
iteration, only the optimal solution of each role is applied to update the pheromone, which prevents premature convergence.
The elitist strategy combined with local optima jumping is used again to the stagnation of the algorithm. Many experiments
of 50 classic TSP instances show that the OMACO algorithm can obtain the known optimal solution in fewer iterations. For
large-scale TSP instances, the proposed algorithm is also far better than the comparison algorithms.
Key words: ant colony optimization;object-oriented;multi-role;𝑘-means;traveling salesman problem;2-Opt
0 引引引 言言言
旅行商问题 (TSP) 是经典的组合优化问题, 具有
很强的现实意义, 已广泛地应用于计算机网络、物流
配送、车辆路径、大规模集成电路布线等领域. 同时,
TSP 又是 NP-Hard 问题, 随着问题规模的增大, 解空
间迅速膨胀, 目前并未得到完全解决. TSP 求解算法
分为精确型和启发型两种: 对于小型 TSP 问题, 采用
传统的精确型算法处理可以从理论上获得最优解; 对
于中大型 TSP 问题, 精确型算法因时间和空间消耗过
于巨大而完全不可行, 一般采用启发式算法进行求
解. 启发式算法不能保证获得最优解, 但可以在有限
的时间里获得令人满意的解, 常见的启发式算法有贪
婪算法、𝑘-Opt、蚁群算法 (ACA)
[1]
、粒子群优化算法
(PSO) 等. 蚁群算法是一种模拟自然界蚁群觅食行为
的智能优化算法, 最早由意大利学者 Dorigo 等
[2]
提
出. 因其具有收敛速度快、鲁棒性较强、采用分布式
收稿日期: 2013-08-27;修回日期: 2013-12-29.
基金项目: 国家自然科学基金项目(91220301, 61371040);高等学校学科创新引智计划课题(B13022).
作者简介: 杜鹏桢(1982−), 男, 博士生, 从事机器人及智能计算的研究;唐振民(1961−), 男, 教授, 博士生导师, 从事模
式识别与智能系统等研究.