




已阅读5页,还剩28页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
蚁群算法及其在路径规划中的应用,Q.Song2011.4.6,SwarmIntelligence,Dumbparts,properlyconnectedintoaswarm,yieldsmartresults.KevinKelly,Algorithmsinspiredfrominsects,AntColonyOptimization(ACO)ParticleSwarmOptimization(PSO)FishSwarm(FS),Twobridgesexperiment,fromnesttofoodconstrainedtomoveintwoasymmetricpaths,Principles,蚁群算法的基本原理源于昆虫学家们的观察和发现,生物界中的蚂蚁在搜索食物源时,能够在其走过的路径上释放一种蚂蚁特有的分泌物(pheromone)信息激素,使得一定范围内的其它蚂蚁能够觉察并影响其行为。当某些路径上走过的蚂蚁越来越多时,留下的这种信息激素也越多,以致后来蚂蚁选择该路径的概率也越高,从而增加了该路径的吸引强度,蚂蚁群体就是靠着这种内部的生物协同机制形成了一条它们自己并未意识到的最短路线。,Behaviorsofant,eachantmovesatrandom,pheromoneisdepositedonpath,antsdetectleadantspath,inclinedtofollow,morepheromoneonpathincreasesprobabilityofpathbeingfollowed,作为与遗传算法同属一类的通用型随机优化方法,蚁群算法不需要任何先验知识,最初只是随机地选择搜索路径,随着对解空间的“了解”,搜索变得有规律,并逐渐逼近直至最终达到全局最优解。蚁群算法对搜索空间的“了解”机制主要包括三个方面:(1)蚂蚁的记忆。一只蚂蚁搜索过的路径在下次搜索时就不会再被选择,由此在蚁群算法中建立tabu(禁忌)列表来进行模拟;(2)蚂蚁利用信息素进行相互通信。蚂蚁在所选择的路径上会释放一种叫做信息素的物质,当同伴进行路径选择时,会根据路径上的信息素进行选择,这样信息素就成为蚂蚁之间进行通讯的媒介。,(3)蚂蚁的集群活动。通过一只蚂蚁的运动很难到达食物源,但整个蚁群进行搜索就完全不同。当某些路径上通过的蚂蚁越来越多时,在路径上留下的信息素数量也越来越多,导致信息素强度增大,蚂蚁选择该路径的概率随之增加,从而进一步增加该路径的信息素强度,而某些路径上通过的蚂蚁较少时,路径上的信息素就会随时间的推移而蒸发。因此,模拟这种现象即可利用群体智能建立路径选择机制,使蚁群算法的搜索向最优解推进。,TheAlgorithm,UsedtosolveTSPTransitionfromcityitojdependson:-Tabulist:listofcitieshavingvisited-Visibility=1/dij;representslocalinformation,heuristicdesirabilitytovisitcityjwhenincityi.-Pheromonetrailforeachedge,representsthelearneddesirabilitytovisitcityjwhenincityi.,s,i,t,j,j,j,TheAlgorithm,TransitionRuleProbabilityofantkgoingfromcityitoj:Alphaandbetaareadjustableparametersthatcontroltherelativeimportanceoftrailversusvisibility;allowedk=Ntabuk,TheAlgorithm,Pheromoneupdate:,:acoefficientsuchthatrepresentstheevaporationoftrailbetweentimetandt+n,:thequantityperunitoflengthoftrailsubstancelaidonedge(i,j)byantkbetweentimetandt+n,TheAlgorithm,Threetypesof*ant-cyclesystem:Q:aconstantLk:thetourlengthofthekthant,TheAlgorithm,Threetypesof*ant-quantitysystem:,TheAlgorithm,Threetypesof*ant-densitysystem:,TheAlgorithm,Differencebetweenthreemodels:*ant-cyclesystemusesglobalinformation*ant-quantitysystemandant-densitysystemuseslocalinformation*ant-cyclesystemusedtosolveTSP,TSPExample,A,E,D,C,B,dAB=100;dBC=60;dDE=150,TSPExample,A,E,D,C,B,TSPExample,Iteration1,A,E,D,C,B,TSPExample,TSPExample,A,E,D,C,B,Iteration2,TSPExample,A,E,D,C,B,Iteration3,A,E,D,C,B,TSPExample,Iteration4,A,E,D,C,B,TSPExample,Iteration5,L1=300,L2=450,L3=260,L4=280,L5=420,TSPExample,EndofFirstRun,Allantsdie,Newantsareborn,SaveBestTour(Sequenceandlength),TSPExample,t=0;NC=0;ij(t)=cforij=0Placethemantsonthennodes,Updatetabuk(s),ComputethelengthLkofeveryantUpdatetheshortesttourfound=,Foreveryedge(i,j)ComputeFork:=1tomdo,Initialize,Choosethecityjtomoveto.Useprobability,Tabulistmanagement,Movek-thanttotownj.Inserttownjintabuk(s),Sett=t+n;NC=NC+1;ij=0,NCNCmax¬stagn.,Yes,End,No,Yes,VRPTWExample,NcustomersaretobevisitedbyKvehiclesGiven*Depots(number,location)*Vehicles(capacity,costs,timetoleave,timeonroad.)*Customers(demands,timewindows,priority,.)*RouteInformation(maximumroutetimeordistance,costontheroute),VRPTWExample,ObjectiveFunctionstoMinimize*Totaltraveldistance*Totaltraveltime*NumberofvehiclesSubjectto:*Vehicles(#,Capacity,timeonroad,triplength)*Depots(Numbers)*Customers(Demands,timewindows),VRPTWExample,RelationwithTSP?!,VRPTWExample,SimpleAlgorithm-Placeantsondepots(Depots#=Vehicle#).-Probabilisticchoice(1/distance,di,Q)amountofpheromone-Ifallunvisitedcustomerleadtoaunfeasiblesolution:Selectdepotasyournextcustomer.-Improvebylocalsearch.-Onlybestantsupdatepheromonetrial.,Advantages,PositiveFeedbackaccountsforrapiddiscoveryofgoodsolutions.Distributedcomputationavoidsprematureconvergence.Thegreedyheuristichelpsfindacceptablesolutionintheearlysolutionintheearlystagesofthesearchprocess.Thecollectiveinteractionofapopulationofagents
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 【正版授权】 ISO/IEC 19762:2025 EN Information technology - Automatic identification and data capture (AIDC) techniques - Vocabulary
- 【正版授权】 IEC 63522-44:2025 EN-FR Electrical relays - Tests and measurements - Part 44: Corrosive atmosphere due to salt mist
- 2025年数字经济与未来就业考试卷及答案
- 春运应急预案15篇
- 中国环境经济政策的回顾与展望(上)
- 文档基础化工行业研究方法
- 粮食 防汛应急演练方案
- 中学生日常行为规范新版
- 生物制药项目投资合作合同
- 科技创新企业兼职UI设计师综合聘用合同
- 美术鉴赏学习通超星期末考试答案章节答案2024年
- 2023年山东烟台中考满分作文《这一路风光真好》
- 《更加注重价值创造能力 着力推进国企高质量发展》
- 小学综合实践活动《来之不易的粮食》课件
- 关于我校中学生错误握笔姿势调查及矫正的尝试
- 积分制管理的实施方案及细则
- T-CRHA 049-2024 结核病区消毒隔离护理管理规范
- 正定古建筑-隆兴寺
- 走进物理-基础物理智慧树知到答案2024年广西师范大学
- 毕业设计中期报告
- 呼和浩特市消防救援支队招聘政府专职消防员笔试真题2022
评论
0/150
提交评论