|
Q1.
' L8 ~: _/ e7 v+ h- R. c/ |5 i* [" B我的疑问是第四章中,用来做进行适应度评估的Function函数
% ~& c0 H) N3 n* a- U其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)& F+ {/ P; P4 K1 M9 [) I" O
但是在function函数中,书中给出了
" D; P& ~& O n7 k+ K; Dfor i:=1 to Stations loop
7 t# L6 b6 A- x Y; Vmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
P8 U, f) U/ q/ d+ rstationIndex:=StationIndex+Mu;--这个也能理解
, f$ \# A' N& y" N# Ssigma:=Mu*Mu;--这个用来求平衡指数的,也能理解) U0 b' u2 }+ t: {" G. K0 S
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?5 P/ M& ]0 u. H1 T
SmoothIndex:=smoothIndex+sigma;
M1 x2 O9 [3 k; H2 z6 x# unext;1 V3 [0 I8 J) G, l9 {% l
StationIndex:=stationIndex/Stations;' B }$ s1 w+ ]. Y
SmoothIndex:=sqrt(SmoothIndex/Stations);
8 b% F; u6 a; z! I. s# x% ~# i y( H9 |, H4 c
Q2:
" X( {- n1 S2 U1 P同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。; s3 t6 t+ L7 J
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
/ \/ R/ Q0 q7 @将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
4 | A0 h0 x9 A有没有可以直接在plant中显示的方法呢? |
|