|
|
Q1.
4 d4 g# h. l. C! H$ ?# s我的疑问是第四章中,用来做进行适应度评估的Function函数 w2 Z/ i0 J6 V4 q2 b* t( ^, |
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)) U2 t7 j. q! }! }2 p
但是在function函数中,书中给出了: I2 T& F% m5 t( a4 N
for i:=1 to Stations loop; x& K/ s6 T! |9 m4 d* ]
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;) F. U, ]5 n0 a% W9 B4 f* ^1 f
stationIndex:=StationIndex+Mu;--这个也能理解
, ?# k+ f5 h5 A7 B' ]sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解* e4 T7 S' B! H* u* B' y: H3 I
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?4 q2 |: s' ~! L- X) ]7 k
SmoothIndex:=smoothIndex+sigma;
. l- \% C( c# e& s8 q2 [next;7 b" ?* D$ I( N/ G
StationIndex:=stationIndex/Stations;% \: z5 b# t% |, c
SmoothIndex:=sqrt(SmoothIndex/Stations);
2 u6 A8 G5 J7 e: `7 u' W1 `) [ @! E# e
) X1 ^1 T: S6 w O5 ^9 A5 F: JQ2:$ n' i6 O: u) _0 T* B; ?
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。 J/ B; K. c" E6 [& x
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?; T- c: N$ Q S' T; X% H# f
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
+ w+ s% x7 |" \, P4 M8 m! h有没有可以直接在plant中显示的方法呢? |
|