高珊 孟亮
关键词: GRAGWO算法; 贪婪随机自适应算法; 灰狼优化算法; 群体智能; 旅行商问题; 组合优化
中图分类号: TN911?34; TP393 文献标识码: A 文章编号: 1004?373X(2019)14?0046?05
Greedy randomized adaptive grey wolf optimization algorithm for solving TSP difficulty
GAO Shan, MENG Liang
(College of Information and Computer, Taiyuan University of Technology, Taiyuan 030024, China)
Abstract: A greedy randomized adaptive grey wolf optimization (GRAGWO) algorithm is proposed to solve TSP difficulty. GRAGWO algorithm is based on the greedy randomized adaptive search procedures (GRASP), which adopts construction phase of GRASP to generate the initial solution and the grey wolf optimization (GWO) algorithm is used in the local search phase to optimize its searched result. GWO algorithm cannot be directly used to solve discrete problems because it is easy to fall into local optimum, resulting in lower convergence rate in the later period. According to the characteristics of TSP, the grey wolf coding mode is redefined to solve the TSP problem, which is easy to form a local optimal path and leads to the decline of population diversity with the increase of iterations. Several groups of TSP problems in different scales in TSPLIB database were used as experimental cases. The GRAGWO algorithm is compared with other bionic algorithms in this paper. The results show that GRAGWO algorithm has relative advantages in the aspects of solving accuracy, stability and large?scale urban problems.
Keywords: GRAGWO algorithm; greedy randomized adaptive search procedure; grey wolf optimization algorithm; swarm intelligence; traveling salesman problem; combination optimization
0 引 言
旅行商問题是一个典型的组合优化问题,该问题假设一位旅行商需访问n个城市,城市之间的间距是固定的,旅行商从一指定的城市出发,且不重复的访问剩余城市,最后回到起始城市,在所有的回路中求出最短路径[1?2]。TSP问题应用非常广泛,例如绘制基因组图谱、望远镜、X射线、操控工业机械、安排生产作业任务等。TSP问题是著名的NP完全问题,求解TSP问题有精确算法和启发式算法两种。精确算法能保证在指数级次数中找到最好结果,但其本身非常复杂,且对计算机要求较高;启发式算法普遍简单,运行时间短,例如模拟退火算法、遗传算法、局部搜索算法等,但易陷入局部最优。
贪婪随机自适应搜索算法(Greedy Randomized Adaptive Search Procedures,GRASP)是一种求解组合优化问题的启发式算法[3]。灰狼优化算法是2014年由Mirjalili等人提出的启发式智能算法。该算法模拟自然界灰狼等级制度和狼群搜索猎物过程,利用灰狼种群内部等级制度,实现对目标猎物函数的优化过程[4]。该算法具有优良的收敛稳定性与较强的全局探索能力。本文利用GRASP算法寻求初始解,从而加速灰狼算法的收敛速度,且提高其局部搜索能力。实验表明,两种算法的结合可以高效提高求解速度与解的质量。
1 算法原理
1.1 贪婪随机自适应搜索算法
GRASP算法分两个阶段,构造阶段和局部搜索阶段[3]。在构造阶段,初始化可行解S和候选集C,并对候选集的每一个元素进行评估,判断是否可加入限制候选列表(Restricted Candidate List,RCL)。……