|
|
Q1.; e2 p" e0 H7 N+ r4 ?3 s5 m
我的疑问是第四章中,用来做进行适应度评估的Function函数+ ]5 P1 x }6 y* y' u
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
, V( V7 |5 T; S( v1 K/ G$ ~% Z但是在function函数中,书中给出了3 n* k' M9 g. M9 ^
for i:=1 to Stations loop
0 N) {0 |7 F1 D$ `5 Xmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;1 L1 z% p& X4 P
stationIndex:=StationIndex+Mu;--这个也能理解+ j2 o1 b/ }: U+ y0 T# s
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
z C) D' L8 U' yStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?. J a4 N" c% R. }
SmoothIndex:=smoothIndex+sigma;
2 a' V7 s- T: i/ ], Nnext;
+ w0 U) X. ^" w/ `$ x1 \, o+ ]: uStationIndex:=stationIndex/Stations;5 l# n: L; m% R/ T
SmoothIndex:=sqrt(SmoothIndex/Stations);
5 N2 B; i1 j: f+ j" g9 A
6 n+ m: L' E I7 @Q2:
+ W! f7 I* g# }- X/ t f4 C6 S同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
( e: f& f, w1 `/ v9 @; `' F1 v! w如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
. x: e* T8 c( V( y: a将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
, X v* ?) r8 H; }有没有可以直接在plant中显示的方法呢? |
|