基于改进蚁群算法快速求解迷宫路径问题研究
2018-09-26杨乐向凤红毛剑琳
杨乐 向凤红 毛剑琳

摘要:针对传统蚁群算法收敛速度慢、搜索时间长、易陷入局部最优等缺点,在其基础上重新定义信息素更新方式。在搜索路径上进行选择优化处理,对搜索出的最短路径做平滑优化处理,使其能快速有效地搜索出最优路径。在解决迷宫路径问题上对传统蚁群算法进行了改进。仿真实验对比表明,改进后的蚁群算法在求解时间和距离上都远优于传统蚁群算法,能快速有效地求得问题的最优解,使解决二维路径问题得到进一步优化。
关键词:蚁群算法;迷宫;路径优化
DOI:10.11907/rjdk.173093
中图分类号:TP312
文献标识码:A文章编号:1672-7800(2018)007-0108-03
Abstract:Inthispapertosolvethemazeroutingproblemofthetraditionalantcolonyalgorithmisimproved,thetraditionalantcolonyalgorithmslowconvergencerateandlongsearchtime,easytofallintolocaloptima,onthebasisofredefiningthepheromoneupdatemethods,theselectionandoptimizationofprocessinginthesearchpath,smoothingoptimizationoftheshortestpathsearch,whichcanquicklyandeffectivelysearchtheoptimalpath.Throughsimulationexperiments,theimprovedantcolonyalgorithmisfarbetterthanthetraditionalantcolonyalgorithminsolvingtheoptimaltimeanddistance,theimprovedantcolonyalgorithmcanobtainmorefastandefficientsolution,afurtheroptimizationinsolvingtheproblemoftwo-dimensionalpath.Toovercomethetraditionalantcolonyalgorithm′sdefaultsofslowconvergencerate,longresearchtimeandgreattendencytolimmittolocaloptimalsolution,weredifinethepheromoneupdatemethod.Thesearchpathisselectivelyoptimizedandtheshortestpathissmoothedtosearchtheoptimalpathquicklyandefficiently.Thetraditionalantcolonyalgorithmonsolvingmazepathisimproved.Thesimulationexperimentsshowthattheimprovedalgorithmcanobtainfasterandmoreeffiecientsolutionsothatthesolutionfortwo-dimensionalpathisoptimized.
KeyWords:antcolonyalgorithm;maze;pathoptimization
0引言
迷宮问题是数据图形领域的经典问题[1]。迷宫指道路环境复杂,从入口进入之后很难找到出口的建筑物[2-3]。迷宫最优路径指从入口到出口距离最短的一条路径[4]。传统的蚁群算法搜索迷宫最优路径时,需要很长的搜索时间用来生成和更新信息素,辅助蚂蚁快速找到终点位置,然而求解速度和所需要的算法空间会随着迷宫环境复杂度的增大而不断增加[5-6]。文献[7]对二维空间进行环境建模,采用蚁群算法对机器人进行全局二位路径搜索;文献[8]引入一种变异算子,在搜索设计和信息素更新方式上进行改变,引入逆转变异和插入变异算子,对传统蚁群算法进行了局部优化改良;文献[9]引入精英策略,加入遗传算法中的排序概念,重新定义一种信息素更新方式,有效改善了蚁群算法求解速度慢的问题,增加了蚁群算法的求解速度和精确度;……
