|
Q1.
+ z* g, B Q) p* w2 P我的疑问是第四章中,用来做进行适应度评估的Function函数3 ~+ I, \7 H7 s% t1 p4 U) I# V
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)! G% s( ?8 M! L. ~, h
但是在function函数中,书中给出了0 i }7 m1 b* A, g" I# H
for i:=1 to Stations loop
' v' Y+ q" s3 Lmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
. n4 x$ c9 b% T8 X8 OstationIndex:=StationIndex+Mu;--这个也能理解7 Q2 ]8 B% J6 W( ?* ^
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
& M6 p, C3 {9 l" dStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?: @8 C- q/ o: i" f9 F
SmoothIndex:=smoothIndex+sigma;
; w8 a$ B/ j/ g5 @* V; wnext;9 U; Z6 }; f$ r( @3 s! v1 K
StationIndex:=stationIndex/Stations;, l1 H2 l$ {# w! [; Q# I
SmoothIndex:=sqrt(SmoothIndex/Stations);
, N. V& O: i b( G3 j& j: @$ l7 T# ]- q# n, y
Q2:- X& K* D0 C" k" ]
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。3 @. _& H( [2 l4 V1 v
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?6 W. Q/ _. u0 B* L) x' V
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?6 C: g3 c \1 C* U8 y5 \9 n* H
有没有可以直接在plant中显示的方法呢? |
|