mopso.zip

  • 仙女66
    了解作者
  • matlab
    开发工具
  • 32KB
    文件大小
  • zip
    文件格式
  • 1
    收藏次数
  • 10 积分
    下载积分
  • 3
    下载次数
  • 2021-01-08 15:28
    上传日期
此代码为多目标粒子群算法,包括多个测试函数
mopso.zip
  • mopso
  • ZDT1.m
    401B
  • GetSchottDis.m
    473B
  • ~$标粒子群matlab代码.doc
    162B
  • GetTrueDis.m
    1.2KB
  • Spacing.m
    522B
  • 多目标粒子群matlab代码.doc
    145.5KB
  • GenerationalDistance.m
    361B
  • fitness.m
    2.1KB
  • GetDistance.m
    717B
  • GetGlobalBest2.m
    798B
  • ParticleSwarmOpt.m
    6.6KB
  • GetSpareDis.m
    431B
  • MaximumSpread.m
    1.5KB
  • GenerationalDistance2.m
    386B
  • GetFai.m
    2.3KB
  • DominateRel.m
    550B
  • compare.m
    1.4KB
  • ReInit.m
    464B
  • GetEvaluDis.m
    751B
  • GetGlobalBest.m
    743B
  • GetLeastFunctionValue.m
    577B
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/6384a07c9f0e6d0d6546226e/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6384a07c9f0e6d0d6546226e/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div class="t m0 x1 h4 y3 ff1 fs0 fc0 sc0 ls0 ws0">% <span class="ff2">&#25913;&#36827;&#30340;&#22810;&#30446;&#26631;&#31890;&#23376;&#32676;&#31639;&#27861;&#65292;&#21253;&#25324;&#22810;&#20010;&#27979;&#35797;&#20989;&#25968;</span></div><div class="t m0 x1 h4 y4 ff1 fs0 fc0 sc0 ls0 ws0">% <span class="ff2">&#23545;&#31243;&#24207;&#20013;&#30340;&#37096;&#20998;&#21442;&#25968;&#36827;&#34892;&#20462;&#25913;&#23558;&#26356;&#22909;&#22320;&#27714;&#35299;&#26576;&#20123;&#20989;&#25968;</span></div><div class="t m0 x1 h3 y5 ff1 fs0 fc0 sc0 ls0 ws0">% </div><div class="t m0 x1 h3 y6 ff1 fs0 fc0 sc0 ls0 ws0">ZDT1NP=cell(1,50);</div><div class="t m0 x1 h3 y7 ff1 fs0 fc0 sc0 ls0 ws0">ZDT1FV=cell(1,50);</div><div class="t m0 x1 h3 y8 ff1 fs0 fc0 sc0 ls0 ws0">ZDT1T=zeros(1,50);</div><div class="t m0 x1 h3 y9 ff1 fs0 fc0 sc0 ls0 ws0">for i=1:50</div><div class="t m0 x1 h3 ya ff1 fs0 fc0 sc0 ls0 ws0"> tic;</div><div class="t m0 x1 h3 yb ff1 fs0 fc0 sc0 ls0 ws0"> <span class="_ _0"> </span> <span class="_ _1"> </span> <span class="_ _0"> </span> %</div><div class="t m0 x1 h3 yc ff1 fs0 fc0 sc0 ls0 ws0">[np,nprule,dnp,fv<span class="_ _2"></span>,goals,pbest]=ParticleSwarmOpt('ZDT1',0.1,50,100,2.0,1.0,0.4,200,30,zeros(1,30</div><div class="t m0 x1 h3 yd ff1 fs0 fc0 sc0 ls0 ws0">),ones(1,30));%--ZDT1</div><div class="t m0 x1 h3 ye ff1 fs0 fc0 sc0 ls0 ws0"> elapsedT<span class="_ _3"></span>ime=toc;</div><div class="t m0 x1 h3 yf ff1 fs0 fc0 sc0 ls0 ws0"> ZDT1NP(i)={np};</div><div class="t m0 x1 h3 y10 ff1 fs0 fc0 sc0 ls0 ws0"> ZDT1FV(i)={fv};</div><div class="t m0 x1 h3 y11 ff1 fs0 fc0 sc0 ls0 ws0"> ZDT1T(i)=elapsedT<span class="_ _3"></span>ime;display(strcat('ZDT1',num2str(i)));</div><div class="t m0 x1 h3 y12 ff1 fs0 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h3 y13 ff1 fs0 fc0 sc0 ls0 ws0">zdt1fv=cell2mat(ZDT1FV');</div><div class="t m0 x1 h3 y14 ff1 fs0 fc0 sc0 ls0 ws0">zdt1fv=GetLeastFunctionV<span class="_ _4"></span>alue(zdt1fv);</div><div class="t m0 x1 h3 y15 ff1 fs0 fc0 sc0 ls0 ws0">ZDT2NP=cell(1,50);</div><div class="t m0 x1 h3 y16 ff1 fs0 fc0 sc0 ls0 ws0">ZDT2FV=cell(1,50);</div><div class="t m0 x1 h3 y17 ff1 fs0 fc0 sc0 ls0 ws0">ZDT2T=zeros(1,50);</div><div class="t m0 x1 h3 y18 ff1 fs0 fc0 sc0 ls0 ws0">for i=1:50</div><div class="t m0 x1 h3 y19 ff1 fs0 fc0 sc0 ls0 ws0"> tic;</div><div class="t m0 x1 h3 y1a ff1 fs0 fc0 sc0 ls0 ws0"> <span class="_ _0"> </span> <span class="_ _1"> </span> <span class="_ _0"> </span> %</div><div class="t m0 x1 h3 y1b ff1 fs0 fc0 sc0 ls0 ws0">[np,nprule,dnp,fv<span class="_ _2"></span>,goals,pbest]=ParticleSwarmOpt('ZDT2',0.1,50,100,2.0,1.0,0.4,200,30,zeros(1,30</div><div class="t m0 x1 h3 y1c ff1 fs0 fc0 sc0 ls0 ws0">),ones(1,30),[1,zeros(1,29)]);%--ZDT2</div><div class="t m0 x1 h3 y1d ff1 fs0 fc0 sc0 ls0 ws0"> elapsedT<span class="_ _3"></span>ime=toc;</div><div class="t m0 x1 h3 y1e ff1 fs0 fc0 sc0 ls0 ws0"> ZDT2NP(i)={np};</div><div class="t m0 x1 h3 y1f ff1 fs0 fc0 sc0 ls0 ws0"> ZDT2FV(i)={fv};</div><div class="t m0 x1 h3 y20 ff1 fs0 fc0 sc0 ls0 ws0"> ZDT2T(i)=elapsedT<span class="_ _3"></span>ime;display(strcat('ZDT2',num2str(i)));</div><div class="t m0 x1 h3 y21 ff1 fs0 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h3 y22 ff1 fs0 fc0 sc0 ls0 ws0">zdt2fv=cell2mat(ZDT2FV');</div><div class="t m0 x1 h3 y23 ff1 fs0 fc0 sc0 ls0 ws0">zdt2fv=GetLeastFunctionV<span class="_ _4"></span>alue(zdt2fv);</div><div class="t m0 x1 h3 y24 ff1 fs0 fc0 sc0 ls0 ws0">%%%%%%%%%%%%%%%%%%%%%%%%%%%5</div><div class="t m0 x1 h3 y25 ff1 fs0 fc0 sc0 ls0 ws0">ZDT3NP=cell(1,50);</div><div class="t m0 x1 h3 y26 ff1 fs0 fc0 sc0 ls0 ws0">ZDT3FV=cell(1,50);</div><div class="t m0 x1 h3 y27 ff1 fs0 fc0 sc0 ls0 ws0">ZDT3T=zeros(1,50);</div><div class="t m0 x1 h3 y28 ff1 fs0 fc0 sc0 ls0 ws0">for i=1:50</div><div class="t m0 x1 h3 y29 ff1 fs0 fc0 sc0 ls0 ws0"> tic;</div><div class="t m0 x1 h3 y2a ff1 fs0 fc0 sc0 ls0 ws0">%</div><div class="t m0 x1 h3 y2b ff1 fs0 fc0 sc0 ls0 ws0">[np,nprule,dnp,fv<span class="_ _2"></span>,goals,pbest]=ParticleSwarmOpt('ZDT3',0.1,50,100,2.0,1.0,0.4,400,30,zeros(1,30</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐