⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 view.htm

📁 Matlab遗传算法工具箱: Matlab遗传算法工具箱
💻 HTM
📖 第 1 页 / 共 3 页
字号:
      [endPop(a,<IMG alt=Smile src="view.files/smile.gif" width=15> 
      endPop(b,<IMG alt=Smile src="view.files/smile.gif" width=15>] = 
      feeval(xN,endPop(a,<IMG alt=Smile src="view.files/smile.gif" 
      width=15>,endPop(b,<IMG alt=Smile src="view.files/smile.gif" width=15>, 
      bounds,[gen xOverOps(i,<IMG alt=Smile src="view.files/smile.gif" 
      width=15>]);<BR>end<BR>end<BR>for i=1:numMuts<BR>mN=deblank(mutFNs(i,<IMG 
      alt=Smile src="view.files/smile.gif" width=15>);<BR>for 
      j=1:popSize<BR>&nbsp;&nbsp; endPop(j,<IMG alt=Smile 
      src="view.files/smile.gif" width=15> = feeval(mN,endPop(j,<IMG alt=Smile 
      src="view.files/smile.gif" width=15>,bounds,[gen mutOps(i,<IMG alt=Smile 
      src="view.files/smile.gif" width=15>]);<BR>&nbsp;&nbsp; 
      eeval(e1str);<BR>end<BR>end<BR>end<BR><BR>gen=gen+1;<BR>done=feeval(termFN,[gen 
      termOps],bPop,endPop); %<BR>startPop=endPop; 
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%更新种群<BR><BR>[beval,bindx] = 
      min(startPop(:,xZomeLength)); <BR>startPop(bindx,<IMG alt=Smile 
      src="view.files/smile.gif" width=15> = best; 
      &nbsp;&nbsp;&nbsp;&nbsp;<BR>end<BR><BR>[beval,bindx] = 
      max(startPop(:,xZomeLength));<BR>if display <BR>fprintf(1,'\n%d 
      %f\n',gen,beval);&nbsp;&nbsp; <BR>end<BR><BR>x=startPop(bindx,<IMG 
      alt=Smile src="view.files/smile.gif" width=15>;<BR>if opts(2)==0 
      %binary<BR>x=b2f(x,bounds,bits);<BR>bPop(bFoundIn,<IMG alt=Smile 
      src="view.files/smile.gif" width=15>=[gen 
      b2f(startPop(bindx,1:numVar),bounds,bits), 
      startPop(bindx,xZomeLength)];<BR>else<BR>bPop(bFoundIn,<IMG alt=Smile 
      src="view.files/smile.gif" width=15>=[gen startPop(bindx,<IMG alt=Smile 
      src="view.files/smile.gif" width=15>];<BR>end<BR>if 
      collectTrace<BR>traceInfo(gen,1)=gen; 
      &nbsp;&nbsp;&nbsp;&nbsp;<BR>traceInfo(gen,2)=startPop(bindx,xZomeLength); 
      %Best fittness<BR>traceInfo(gen,3)=mean(startPop(:,xZomeLength)); %Avg 
      fittness<BR>end </SPAN><BR><BR>
      <DIV align=right></DIV><BR></TD></TR></TBODY></TABLE><A name=80817></A>
<TABLE cellSpacing=1 cellPadding=4 width="95%" bgColor=#000000 border=0>
  <TBODY>
  <TR class=head>
    <TD align=middle width=150><FONT color=#ffffff><B>作者</B></FONT></TD>
    <TD><FONT color=#ffffff><B>Re:【共享】遗传算法的MATLAB6.5 源程序 [Re:wqjk] 
    </B></FONT></TD></TR>
  <TR class=even>
    <TD vAlign=top width=150><B>wqjk</B> <BR><IMG 
      src="view.files/face_byhtsai_amuro.gif" border=0> <BR><BR><BR>论坛游民<IMG 
      src="view.files/advu.gif" border=0> <BR><BR><B>发贴:</B> 2 <BR><B>技术分:</B> 0 
      <BR><B>积分:</B>3 <BR><IMG height=1 src="view.files/pixel.gif" width=150 
      border=0> </TD>
    <TD vAlign=top width="100%"><IMG src="view.files/post.gif" align=absMiddle 
      border=0>于 2004-08-20 15:33 <A 
      href="http://bbs.matwav.com/user/info?uid=21786"><IMG alt="user profile" 
      src="view.files/icon_profile.gif" align=absMiddle border=0></A><A 
      href="http://bbs.matwav.com/user/message?action=WriteMessage&amp;to=wqjk&amp;subject=Re%3ARe%3A%A1%BE%B9%B2%CF%ED%A1%BF%D2%C5%B4%AB%CB%E3%B7%A8%B5%C4MATLAB6.5+%D4%B4%B3%CC%D0%F2" 
      target=_blank><IMG alt="send a private message to user" 
      src="view.files/icon_pm.gif" align=absMiddle border=0></A><A 
      href="http://bbs.matwav.com/post/reply?bid=7&amp;parent=80817&amp;done=%2Fpost%2Fview%3Fbid%3D7%26id%3D80816%26sty%3D1%26tpg%3D1%26age%3D0&amp;quote=1"><IMG 
      alt="reply to post" src="view.files/icon_quote.gif" align=absMiddle 
      border=0></A><A 
      href="http://bbs.matwav.com/post/search?username=wqjk&amp;action=Search"><IMG 
      alt="search all posts by" src="view.files/icon_find.gif" align=absMiddle 
      border=0></A><A href="javascript:copyText(document.all.text80817);"><IMG 
      alt="select and copy to clipboard. &#13;&#10;ie only, sorry for netscape users:-)" 
      src="view.files/icon_copy.gif" align=absMiddle border=0></A><A 
      href="http://bbs.matwav.com/user/favorite?action=Add&amp;bid=7&amp;id=80817" 
      target=_blank><IMG alt="add this post to my favorite list" 
      src="view.files/icon_favorite.gif" align=absMiddle border=0></A> 
      <HR color=#000000 noShade SIZE=1>
      <SPAN class=javascript 
      id=text80817>%维数n=5<BR>%车间尺寸<BR>H=5;<BR>G=5;<BR>%x方向尺寸向量<BR>S=[3 1 1.5 1.5 
      0.8];<BR>smin=min(S)/2;<BR>%y方向尺寸向量<BR>L=[3 0.8 0.8 0.8 
      0.7];<BR>lmin=min(L)/2;<BR>%设备x,y在x方向上的最小间距<BR>dxijmin=0.8;<BR>%设备x,y在y方向上的最小间距<BR>dyijmin=0.5;<BR>%设置参数边界<BR>bounds 
      =[smin H;smin H;smin H;smin H;smin H;<BR>lmin G;lmin G;lmin G;lmin G;lmin 
      G];<BR>% 生成初始种群,大小为10,且满足约束条件<BR>flag=0;<BR>while 
      flag&lt;11<BR>init=initializega(1,bounds,'f554');<BR>x(1:5)=init(1:5);<BR>y(1:5)=init(6:10);<BR><BR>for 
      i=1:5<BR>for 
      j=1:5<BR>delta1(i,j)=abs(x(i)-x(j))-(S(i)+S(j))/2-dxijmin;<BR>delta2(i,j)=abs(y(i)-y(j))-(L(i)+L(j))/2-dyijmin; 
      <BR>end<BR>end<BR><BR>%约束1<BR>delta11=min(min(delta1));<BR>%约束2<BR>delta22=min(min(delta2));<BR><BR>summ1=0;<BR>for 
      i=1:4<BR>summ1=summ1+abs(x(i)-x(i+1))+(S(i)+S(i+1))/2;<BR>end<BR>%约束3<BR>summ11=H-summ1;<BR><BR>summ2=0;<BR>for 
      i=1:4<BR>summ2=summ2+abs(y(i)-y(i+1))+(L(i)+L(i+1))/2;<BR>end<BR>%约束4<BR>summ22=G-summ2;<BR><BR>if 
      ((delta11&gt;=0)&amp;(delta22&gt;=0)&amp;(summ11&gt;=0)&amp;(summ22&gt;=0))<BR>flag=flag+1;<BR>initPop(flag,<IMG 
      alt=Smile src="view.files/smile.gif" 
      width=15>=init;<BR>else<BR>continue;<BR>end<BR>end<BR>% 调用遗传函数<BR>[p 
      endPop bpop trace] = ga(bounds,'f554',[],initPop,[1e-5 1 
      1],'maxGenTerm',100,…<BR>'normGeomSelect',[0.08],['arithXover'], [20], 
      'nonUnifMutation',[2 1 3]); </SPAN><BR><BR>
      <DIV align=right></DIV><BR></TD></TR></TBODY></TABLE><A name=80830></A>
<TABLE cellSpacing=1 cellPadding=4 width="95%" bgColor=#000000 border=0>
  <TBODY>
  <TR class=head>
    <TD align=middle width=150><FONT color=#ffffff><B>作者</B></FONT></TD>
    <TD><FONT color=#ffffff><B>Re:【共享】遗传算法的MATLAB6.5 源程序 [Re:wqjk] 
    </B></FONT></TD></TR>
  <TR class=even>
    <TD vAlign=top width=150><B>kingdom</B> <BR><IMG src="view.files/none.gif" 
      border=0> <BR><BR><BR>论坛游民<IMG src="view.files/advu.gif" border=0> 
      <BR><BR><B>发贴:</B> 12 <BR><B>技术分:</B> 0 <BR><B>积分:</B>65 <BR><IMG height=1 
      src="view.files/pixel.gif" width=150 border=0> </TD>
    <TD vAlign=top width="100%"><IMG src="view.files/post.gif" align=absMiddle 
      border=0>于 2004-08-20 16:59 <A 
      href="http://bbs.matwav.com/user/info?uid=481"><IMG alt="user profile" 
      src="view.files/icon_profile.gif" align=absMiddle border=0></A><A 
      href="http://bbs.matwav.com/user/message?action=WriteMessage&amp;to=kingdom&amp;subject=Re%3ARe%3A%A1%BE%B9%B2%CF%ED%A1%BF%D2%C5%B4%AB%CB%E3%B7%A8%B5%C4MATLAB6.5+%D4%B4%B3%CC%D0%F2" 
      target=_blank><IMG alt="send a private message to user" 
      src="view.files/icon_pm.gif" align=absMiddle border=0></A><A 
      href="http://bbs.matwav.com/post/reply?bid=7&amp;parent=80830&amp;done=%2Fpost%2Fview%3Fbid%3D7%26id%3D80816%26sty%3D1%26tpg%3D1%26age%3D0&amp;quote=1"><IMG 
      alt="reply to post" src="view.files/icon_quote.gif" align=absMiddle 
      border=0></A><A 
      href="http://bbs.matwav.com/post/search?username=kingdom&amp;action=Search"><IMG 
      alt="search all posts by" src="view.files/icon_find.gif" align=absMiddle 
      border=0></A><A href="javascript:copyText(document.all.text80830);"><IMG 
      alt="select and copy to clipboard. &#13;&#10;ie only, sorry for netscape users:-)" 
      src="view.files/icon_copy.gif" align=absMiddle border=0></A><A 
      href="http://bbs.matwav.com/user/favorite?action=Add&amp;bid=7&amp;id=80830" 
      target=_blank><IMG alt="add this post to my favorite list" 
      src="view.files/icon_favorite.gif" align=absMiddle border=0></A> 
      <HR color=#000000 noShade SIZE=1>
      <SPAN class=javascript id=text80830>selectOps,xOverOps,mutOps什么意思,起什么作用? 
      </SPAN><BR><BR>
      <DIV align=right></DIV>
      <HR color=#000000 noShade SIZE=1>
      <BR></TD></TR></TBODY></TABLE><A name=80908></A>
<TABLE cellSpacing=1 cellPadding=4 width="95%" bgColor=#000000 border=0>
  <TBODY>
  <TR class=head>
    <TD align=middle width=150><FONT color=#ffffff><B>作者</B></FONT></TD>
    <TD><FONT color=#ffffff><B>Re:【共享】遗传算法的MATLAB6.5 源程序 [Re:wqjk] 
    </B></FONT></TD></TR>
  <TR class=even>
    <TD vAlign=top width=150><B>dutxgx</B> <BR><IMG src="view.files/none.gif" 
      border=0> <BR><BR><BR>论坛游民<IMG src="view.files/advu.gif" border=0> 
      <BR><BR><B>发贴:</B> 70 <BR><B>技术分:</B> 4 <BR><B>积分:</B>151 <BR><IMG 
      height=1 src="view.files/pixel.gif" width=150 border=0> </TD>
    <TD vAlign=top width="100%"><IMG src="view.files/post.gif" align=absMiddle 
      border=0>于 2004-08-20 21:46 <A 
      href="http://bbs.matwav.com/user/info?uid=7354"><IMG alt="user profile" 
      src="view.files/icon_profile.gif" align=absMiddle border=0></A><A 
      href="http://bbs.matwav.com/user/message?action=WriteMessage&amp;to=dutxgx&amp;subject=Re%3ARe%3A%A1%BE%B9%B2%CF%ED%A1%BF%D2%C5%B4%AB%CB%E3%B7%A8%B5%C4MATLAB6.5+%D4%B4%B3%CC%D0%F2" 
      target=_blank><IMG alt="send a private message to user" 
      src="view.files/icon_pm.gif" align=absMiddle border=0></A><A 
      href="http://bbs.matwav.com/post/reply?bid=7&amp;parent=80908&amp;done=%2Fpost%2Fview%3Fbid%3D7%26id%3D80816%26sty%3D1%26tpg%3D1%26age%3D0&amp;quote=1"><IMG 
      alt="reply to post" src="view.files/icon_quote.gif" align=absMiddle 
      border=0></A><A 
      href="http://bbs.matwav.com/post/search?username=dutxgx&amp;action=Search"><IMG 
      alt="search all posts by" src="view.files/icon_find.gif" align=absMiddle 
      border=0></A><A href="javascript:copyText(document.all.text80908);"><IMG 
      alt="select and copy to clipboard. &#13;&#10;ie only, sorry for netscape users:-)" 
      src="view.files/icon_copy.gif" align=absMiddle border=0></A><A 
      href="http://bbs.matwav.com/user/favorite?action=Add&amp;bid=7&amp;id=80908" 
      target=_blank><IMG alt="add this post to my favorite list" 
      src="view.files/icon_favorite.gif" align=absMiddle border=0></A> 
      <HR color=#000000 noShade SIZE=1>
      <SPAN class=javascript id=text80908>这是《MATLAB6.5辅助优化计算与设计》中的程序 
      </SPAN><BR><BR>
      <DIV align=right></DIV>
      <HR color=#000000 noShade SIZE=1>
      <BR></TD></TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=2 width="95%" border=0>
  <TBODY>
  <TR>
    <TD align=left><A 
      href="http://bbs.matwav.com/post/reply?bid=7&amp;parent=80816&amp;done=%2Fpost%2Fview%3Fbid%3D7%26id%3D80816%26sty%3D1%26tpg%3D1%26age%3D0"><IMG 
      alt="reply to topic" src="view.files/newreply.gif" align=absMiddle 
      border=0></A><IMG alt="flat mode" src="view.files/flat_d.gif" 
      align=absMiddle border=0><A 
      href="http://bbs.matwav.com/post/view?bid=7&amp;id=80816&amp;tpg=1&amp;ppg=1&amp;sty=3&amp;age=0#80816"><IMG 
      alt="threaded mode" src="view.files/threaded.gif" align=absMiddle 
      border=0></A><A 
      href="http://bbs.matwav.com/post/view?bid=7&amp;id=80816&amp;tpg=1&amp;ppg=1&amp;sty=1&amp;age=0&amp;prev=1"><IMG 
      alt="go to previous topic" src="view.files/prev.gif" align=absMiddle 
      border=0></A><A 
      href="http://bbs.matwav.com/post/view?bid=7&amp;id=80816&amp;tpg=1&amp;ppg=1&amp;sty=1&amp;age=0&amp;next=1"><IMG 
      alt="go to next topic" src="view.files/next.gif" align=absMiddle 
      border=0></A> </TD></TR></TBODY></TABLE>
<TABLE width="95%" border=0>
  <TBODY>
  <TR vAlign=top>
    <TD><IMG src="view.files/post.gif" align=absMiddle border=0><FONT 
      class=text>&nbsp; 已读帖子</FONT><BR><IMG src="view.files/post_n.gif" 
      align=absMiddle border=0><FONT class=text>&nbsp; 新的帖子</FONT><BR><IMG 
      src="view.files/post_d.gif" align=absMiddle border=0><FONT 
      class=text>&nbsp; 被删除的帖子</FONT></TD></TR></TBODY></TABLE>
<TABLE width="95%">
  <TBODY>
  <TR>
    <TD align=right><A name=bottom></A><A href="javascript:jumpTo('top')"><IMG 
      alt="Jump to the top of page" src="view.files/up.gif" border=0></A> 
  </TD></TR></TBODY></TABLE><BR>
<CENTER><A 
href="http://bbs.matwav.com/index.html">返回研学论坛首页</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A 
href="http://www.matwav.com/">返回网站首页</A><BR><BR><A 
href="http://bbs.matwav.com/ad.html" target=_blank>广告服务</A> | <A 
href="http://bbs.matwav.com/private.html" target=_blank>隐私政策</A> | <A 
href="mailto:%20xiaohnglv@163.com" target=_blank>联系我们</A> | <A 
onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://210.192.122.151:8080/bbs/');" 
href="http://bbs.matwav.com/#">设为首页</A><BR><BR><FONT class=text><FONT 
color=#808080>Powered by <A href="http://www.cjsdn.com/" target=_blank>Powerful 
JuteForum</A>&reg; Version Jute 1.5.1 Ent <BR>Copyright&copy; 2002-2003 研学论坛 All Rights 
Reserved.</FONT></FONT> </CENTER></CENTER></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -