|
Q1.
; N+ f6 C" g% I2 m$ D6 c& o. S我的疑问是第四章中,用来做进行适应度评估的Function函数9 p" H" n8 m8 `9 z y M- [
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)& M9 r" M$ X8 X- f1 w, \% v
但是在function函数中,书中给出了
/ Z2 O8 o+ v* m ?) efor i:=1 to Stations loop8 F. t' c& h! ]
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;& s: L: s9 a2 l6 C( H5 d X) `. ]0 ^' N
stationIndex:=StationIndex+Mu;--这个也能理解) r/ M! `5 w! f$ l' A% e9 u& K
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解5 l' L0 n: G/ j. B4 u7 S9 X& d
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?1 L2 T& U0 S5 i2 p" M( Y
SmoothIndex:=smoothIndex+sigma;& }$ ~2 j0 T. W
next;
( Q; u: p* C* q/ d8 DStationIndex:=stationIndex/Stations;8 R% ]0 Y) [7 e
SmoothIndex:=sqrt(SmoothIndex/Stations);
) }# _, i; X; H7 p" V, j; T2 ~7 _9 T( w
Q2:
6 n) a% ?# b) ~) A同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。# x8 ~0 y1 f; Q6 I7 u
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?/ b: k$ B: [4 N3 ?
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
" ~0 o3 g% U9 Q5 x! D: V有没有可以直接在plant中显示的方法呢? |
|