|
|
Q1.7 t2 ^- f' n0 G9 y1 ?
我的疑问是第四章中,用来做进行适应度评估的Function函数- s" K3 j! P8 _. P% [5 f0 ]
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations) V/ k, t* x* v" f" e
但是在function函数中,书中给出了4 M4 F9 Q0 U) o! L2 B+ q
for i:=1 to Stations loop1 I* d5 _1 a" N% ?4 i$ O: `4 B( r
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;5 g1 @, O" i G+ Z" A! L& M F
stationIndex:=StationIndex+Mu;--这个也能理解7 a: @7 B% y% G1 u/ n8 e2 q
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解; |; c6 m+ A2 z4 i* z' O# z7 }5 x
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
$ B$ H! n8 N+ NSmoothIndex:=smoothIndex+sigma;
0 f* M1 C9 N3 Qnext;8 A- W' S5 g3 v* @5 B
StationIndex:=stationIndex/Stations;6 b# {4 B" O- V+ r
SmoothIndex:=sqrt(SmoothIndex/Stations);
5 g# ~, G: r% m" ~' l
3 b9 i- s# a; F. CQ2:3 x. `: P( P4 f% I5 T
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。/ T+ c$ J- c3 P
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?- Y8 {9 l' S1 f
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?% B! r$ K; ~( b) Q: O/ }
有没有可以直接在plant中显示的方法呢? |
|