|
|
Q1.
% o' C, r- L7 L2 @% u. N: B ^( v我的疑问是第四章中,用来做进行适应度评估的Function函数7 C; J% Z$ G7 X( `4 T8 U
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
& `1 N( N) u0 X* f4 T+ X6 R但是在function函数中,书中给出了
( A) i3 B. L" c: h& U! h9 Nfor i:=1 to Stations loop
9 O! v! M& d- Nmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
- W- f9 |' U* k1 WstationIndex:=StationIndex+Mu;--这个也能理解+ X, ]9 {* P4 U r1 l# r T, `+ h
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解8 w, ?" }, G2 C9 G. C
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?) Q& ]- e1 {" @ I P
SmoothIndex:=smoothIndex+sigma;* A0 f! N% ?% y0 w4 n1 b
next;
" N* J/ Q' M" i9 TStationIndex:=stationIndex/Stations;; C: _ v0 A! N" F
SmoothIndex:=sqrt(SmoothIndex/Stations);; k' \9 X1 Y0 `( Z
& Z1 o8 d3 b* m9 ]; s& W+ TQ2:5 U, C7 v9 y1 @; C3 F0 {
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。. a1 M8 ?5 a5 E' ?
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?: T2 U L, Y1 P0 w/ @
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?* |/ S' p0 E7 D; X; w& W
有没有可以直接在plant中显示的方法呢? |
|