|
|
Q1.$ Y* Y0 D- u* r, z- E0 W0 t
我的疑问是第四章中,用来做进行适应度评估的Function函数
' k8 E) q1 O" x其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)0 N! T5 R: a: K0 m: V
但是在function函数中,书中给出了6 Z1 M* m9 I- G0 I$ ^3 k
for i:=1 to Stations loop4 r( @0 M- p& u) B) N- K$ R
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;: K, r* T: k! L
stationIndex:=StationIndex+Mu;--这个也能理解
' _ U5 j( a3 j3 Q8 R I: _sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解9 _, @3 _5 G$ s; \( O
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?2 e$ x; M6 \( N% Z9 H
SmoothIndex:=smoothIndex+sigma;* F" i( Y$ o' y1 R$ z5 X0 i! B
next;# n3 q& L4 t. e2 ]( P; h( A
StationIndex:=stationIndex/Stations;
1 z) ?% C! r; s4 w7 ISmoothIndex:=sqrt(SmoothIndex/Stations);- r6 y& J5 |' u4 \
( h" i2 r# D- D$ @' K* K0 u
Q2:
4 }& V8 d6 n" X同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。: q3 p. @, W: }
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
( ^& N% S$ i1 `- e将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
7 P2 i7 ]7 [) x6 f2 `0 c! Z有没有可以直接在plant中显示的方法呢? |
|