|
|
Q1.
8 V0 W0 G5 {) Z9 t2 m) _我的疑问是第四章中,用来做进行适应度评估的Function函数- X" l Y @, r( k, e9 H
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
/ U9 Z9 G/ D2 B5 Z9 M4 M2 Z [7 E但是在function函数中,书中给出了5 ~& q7 e( v, H2 H& {
for i:=1 to Stations loop i) I$ E8 ]4 b$ U+ p) l$ v
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
* v, h0 Q! n( m0 L& H6 a# S* KstationIndex:=StationIndex+Mu;--这个也能理解- z, q" p$ w# B: I4 x/ @6 ~& M
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
! z, L( c! ]# X! E. ~2 OStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?6 o) v8 u1 x F+ A% G
SmoothIndex:=smoothIndex+sigma;( t: j) x+ u w& ]& |2 D
next;
0 s' r2 n; Z2 _6 l' zStationIndex:=stationIndex/Stations;
. H. \; P; X: I2 s+ m3 K5 nSmoothIndex:=sqrt(SmoothIndex/Stations);1 |. Z6 A! [) `* m* z
! U; j% i6 `- l" A% K# F/ qQ2:/ P- A+ S z. n8 a* R. k2 o
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
! v Q- m! Q; [& t) k如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
) y, m; B: [! x }# a( R将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?: X. E0 v: }+ `, ?1 P8 e' H0 e+ w
有没有可以直接在plant中显示的方法呢? |
|