|
|
Q1.3 o, K: n( i& f
我的疑问是第四章中,用来做进行适应度评估的Function函数
. c9 s2 W; R9 J2 ? \其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)# L) S, e) Q7 N5 B0 L" `. m/ W
但是在function函数中,书中给出了* P( e: M1 Q2 s5 C# e
for i:=1 to Stations loop
+ g5 F: S, M6 b" \mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
+ T2 b8 \' i0 A% \- \( ~! lstationIndex:=StationIndex+Mu;--这个也能理解
4 B, f5 X1 q0 P2 A9 t0 B! Rsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解' v% E J9 w2 |
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?3 H6 k. d3 _! ~, O) r' i
SmoothIndex:=smoothIndex+sigma;
* U4 I- {: f) S* inext;
4 _- z) G# D9 M- \- Z7 h4 nStationIndex:=stationIndex/Stations;
0 E0 b$ ~4 ]5 V/ S3 C+ ^' X6 aSmoothIndex:=sqrt(SmoothIndex/Stations);2 Y( S1 J) a0 v" Y" J M
# [+ c* A! p5 P$ q/ w) n
Q2:" f( n- c$ O& {7 y7 U6 O! R! p
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
6 ~# z6 x$ y' N6 d$ V% b0 f* V如果我想得到GA算法中一个收敛情况,那该如何来得到呢?2 x/ V, C. u# I3 P
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
$ {( E4 j" X, d' o6 T有没有可以直接在plant中显示的方法呢? |
|