结合粒子群优化算法

each particle has three elements : location, velocity and fitness. Loc has p number of directions. P = {a1,a2, .......a_p}

Sum{square a_i } =1

fitness = Q(a)

Pid[i] = (loc, fitness): the optimized position and fitness for each particle

Pgd : the most optimized situation for the group of particle.

Particles[i].velocity(t+1) = w particle[i].velocity(t) + m1r1(Pid[i].loc(t) - Particle[i].loc(t)) +m2r2(Pid[i].loc(t) - Particle[i].loc(t)) 1

Particles[i].loc(t+1) = w particle[i].loc(t) + m1r1(Pid[i].loc(t) - Particle[i].loc(t)) +m2r2(Pid[i].loc(t) - Particle[i].loc(t)) 2


Step one : M number of particles,  the max interation Max gen R =p error

=e

Set M and max gen and R

And e


Step two:

Choose a as initial solution

Step three:

Calculate each fitness and set initial Verticity as 0

Step four:

Find the best Pid[i] and Pgd

Step five

Gen =1

Step six

Sumabs[(zt(i) - zt-1(I))]>=e and gen <maxgen to step 7

Otherwise 14

Step seven

Calculate velocity and location according to 1 and 2 equation.

Step eight

Get the 投影值

Step nine

Get Q(a)

Step ten

Update Pid[i] and the most optimized Pgd;

Step eleven

Gen = gen+1

Step 12

Return to six

Step 13

Best a star and z star

Step 14

根据一惟K均值聚类算法、对最佳投影值zstar进行聚类结果分析

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 珍惜自己吗?珍惜孩子吗?珍惜一切密切的关系吗? 原来我最大的问题,不是不够善良,不够聪明,不够耐心,不够勤劳,而是...
    猛虎动物王国阅读 4,062评论 0 0
  • 图片发自简书App 破阵子 放下 文\余文学 月貌花容昨梦, 灯红酒绿虚名。 把盏唤朋舒适饮, 驾辇携妻自在行。 ...
    闲墨堂主阅读 2,890评论 6 4
  • ps作为一个软件,它自有自己设计方法论。 通过图层来复制和剪切和拼接图案。 然后其他的操作就如粘贴复制一样的,当然...
    蜗牛说事阅读 789评论 0 0

友情链接更多精彩内容