|
|
Q1., S+ G! P) U/ S* u* k% p
我的疑问是第四章中,用来做进行适应度评估的Function函数
/ j5 _* Q3 A$ F7 W其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)1 J0 X/ j% f: T+ r9 B4 N, y/ a2 y. e
但是在function函数中,书中给出了
$ F4 v8 {& N; f8 u% b/ |. `for i:=1 to Stations loop
; n% c% n" m7 m, r7 rmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;( t( P" i' s" b8 n
stationIndex:=StationIndex+Mu;--这个也能理解. c `9 t2 Q- Y! B+ G+ ^, N
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解' M: P! V7 ~2 _& n6 u' k
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?/ `; o( u M4 Q2 _- k& n/ B2 ?1 W
SmoothIndex:=smoothIndex+sigma;8 e& n l% n0 I ]1 \& B! ~0 v. m
next;
' C( T( Y7 H; h% g i* k WStationIndex:=stationIndex/Stations;* n* l" s$ o, q$ L- g# i
SmoothIndex:=sqrt(SmoothIndex/Stations);
) d i j* {6 n) s* t% H m. f5 p( `6 h6 a
Q2:) R5 ^3 W w1 d; }/ Y8 E0 j2 s
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。! p. C# m: e: F4 U' S
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?: s1 P% I7 F: z3 {
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
) a; ~" E; W' m( j/ \- |有没有可以直接在plant中显示的方法呢? |
|