|
|
Q1." D, e0 x' c) l
我的疑问是第四章中,用来做进行适应度评估的Function函数* q6 R( o4 h4 [* S% M& r
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
9 Q/ V g/ R! ]$ M/ T但是在function函数中,书中给出了
9 v$ J- ]0 t1 vfor i:=1 to Stations loop0 S+ ~6 t" h; N+ E& W# x
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;3 u0 I2 n+ s) G$ W/ Y* i0 P
stationIndex:=StationIndex+Mu;--这个也能理解, B% o( E" |& q+ I& _
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解: M, v; { v# L" ~& {, B
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?( v+ M4 v8 _/ ~. S, K
SmoothIndex:=smoothIndex+sigma; j8 V8 w& r: V) h' g3 h1 y
next;& k# r- J( Y1 }/ `$ \) Q+ b- i" h. G
StationIndex:=stationIndex/Stations;
. L: _* u/ W0 M4 a* eSmoothIndex:=sqrt(SmoothIndex/Stations);0 J! W, p" v' W- @: f
9 `# t1 m! X* m/ w5 o. eQ2:
" N2 \: D/ I- p: |" f2 @同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。' z, ^" d& R, C3 X% e6 T* O
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?. F, V1 @! E7 z* }5 @& t" G0 f
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?2 E; ?2 s& K7 f3 l9 P
有没有可以直接在plant中显示的方法呢? |
|