|
Q1.7 h: I9 H6 Q+ Y7 H
我的疑问是第四章中,用来做进行适应度评估的Function函数
6 H' M: o/ P: {' O) I% l其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)& Q6 ?* ~- p m3 q$ A. @& C& a
但是在function函数中,书中给出了
; `/ q+ t) G4 X$ s6 F: }for i:=1 to Stations loop
' w, H1 |& B% y* K+ r) N$ Gmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;% V3 n' G( D, |
stationIndex:=StationIndex+Mu;--这个也能理解
$ I( n+ _+ c* O# ^7 o+ P( Jsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解3 `0 _/ V# q* k6 r+ m- j9 l
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
4 p j" C' j; {. z5 I9 K& CSmoothIndex:=smoothIndex+sigma;
7 C7 H& `! }' F0 Vnext;1 O5 t P4 A0 H$ d' G4 n. q
StationIndex:=stationIndex/Stations;
( V% k4 K9 q L/ e, E1 j eSmoothIndex:=sqrt(SmoothIndex/Stations);/ k" Z. y) J" V% d
1 O& D" B8 m2 S; X* b& A. f$ mQ2:* \- m2 C: X9 K' c* L& X" j
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
" q9 Q$ m* {; C" y如果我想得到GA算法中一个收敛情况,那该如何来得到呢?, `8 o& F+ `: |2 h6 s2 g) O
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?/ s$ u6 u/ W0 |2 n {
有没有可以直接在plant中显示的方法呢? |
|