- 1、本文档共139页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第十章-群集智能与蚁群算法应用
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 演算法介绍 每个寻优的问题解都被想象成一只鸟,我们也称为“Particle”。 所有的Particle 都有一个fitness function 以判断目前的位置之好坏, 每一个Particle必须赋予记忆性,能记得所搜寻到最佳位置。 每一个Particle 还有一个速度以决定飞行的距离与方向。 * 粒子群优化:The Anatomy of a Particle A particle (individual) is composed of: Three vectors: The x-vector records the current position (location) of the particle in the search space, The p-vector records the location of the best solution found so far by the particle, and The v-vector contains a gradient (direction) for which particle will travel in if undisturbed. Ik X = xk0,xk1,…,xkn-1 P = pk0,pk1,…,pkn-1 V = vk0,vk1,…,vkn-1 x_fitness = ? p_fitness = ? * 粒子群优化:The Anatomy of a Particle A particle (individual) is composed of: Two fitness values: The x-fitness records the fitness of the x-vector, and The p-fitness records the fitness of the p-vector. Ik X = xk0,xk1,…,xkn-1 P = pk0,pk1,…,pkn-1 V = vk0,vk1,…,vkn-1 x_fitness = ? p_fitness = ? * 速度更新 Vid :每一Particle在第d维之速度 i:Particle之编号 d:维度 w :Inertia Weight c1、c2:学习 Rand():一介于0至1的随机数 Pid :每一Particle到目前为止,所出現的最佳位置 Pgd :所有Particle到目前为止,所出現的最佳位置 xid :每一Particle目前之所在 * 演算法流程 1.Initial 将群族做初始化,以随机的方式求出每一Particle 之初始位置与速度。 2.Evaluation: 依据fitness function 计算出其fitness value 以作为判断每一Particle之好坏。 3.Fine the Pbest: 找出每一Particle 到目前为止的搜寻过程中最佳解,这个最佳解我们将之称为Pbest。 4.Fine the Gbest: 找出所有Particle 到目前为止所搜寻到的整体最佳解,此最佳解我们称之为Gbest。 5.Update the Velocity: 依据式(1) 与式(2) 更新每一Particle之速度与位置。 6. 回到步骤2. 继续执行,直到获得一个令人满意的结果或符合终止条件为止。 * 粒子群优化:Swarm Search Actually, we must adjust the v-vector before adding it to the x-vector as follows: vid = vid + ?1*rnd()*(pid-xid) + ?2*rnd()*(pgd-xid); xid = xid + vid; Where i is the particle, ?1,?2 are learning rates governing the cognition and social components Where g represents the index of the particle with the best p-fitness, and Where d is the dth dimension. * 粒子群优化:Swarm Search Intially the values of the velocity vect
文档评论(0)