|
|
Q1.
6 p" F3 H1 L" l7 h我的疑问是第四章中,用来做进行适应度评估的Function函数
6 Z, p1 {& c. t, L) ]8 ?其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
9 B7 f* L3 c( v但是在function函数中,书中给出了+ _& P) m* h2 _, h
for i:=1 to Stations loop( c" h0 [& O5 Y; j0 {8 a' L
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
) N8 O) b; {& DstationIndex:=StationIndex+Mu;--这个也能理解
0 F+ {$ A$ h/ s7 Hsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
# d0 j: A- w. t. b% iStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
1 N9 j, \0 y1 k4 A bSmoothIndex:=smoothIndex+sigma;
- x1 G3 \" H8 u* V, m1 Snext;
& E: d$ q, j$ A: i. F2 EStationIndex:=stationIndex/Stations;
8 B k% R) ?) V$ u6 L) ?4 ASmoothIndex:=sqrt(SmoothIndex/Stations);: G: r4 h: Y5 ]/ [+ Y6 Q& A
# ?8 J: m6 Q7 c' V3 ?1 C# x MQ2:# s8 ]* ]$ [- ?6 y
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。. M! W. `- u* i2 j" T
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
& n/ ~; V; @8 a+ K9 {/ b* ]3 R将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
) t" A$ V" W& x2 u- I( ?% J) T有没有可以直接在plant中显示的方法呢? |
|