|
Q1.
; p! Y- N/ P, s1 L. O: h3 N! D我的疑问是第四章中,用来做进行适应度评估的Function函数9 p8 u% B) E. H
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)' E; A' o/ M& p# h, A$ r5 p
但是在function函数中,书中给出了
% h3 w/ O' O, L' Bfor i:=1 to Stations loop
+ D$ e5 S# |5 l3 k( [mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;# Y; s! E( e; }7 B7 T) ~4 n" H
stationIndex:=StationIndex+Mu;--这个也能理解
4 h0 z# X& }! @3 t/ n5 b7 j% asigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
0 d( p6 J/ U; i0 vStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
% E, L$ \1 h2 d+ t5 eSmoothIndex:=smoothIndex+sigma;$ [! O1 P8 p l" p0 L& w
next;$ d3 J A1 l% N
StationIndex:=stationIndex/Stations;
' F- v V- l; G I5 [' M0 CSmoothIndex:=sqrt(SmoothIndex/Stations);
. U% T9 L" Q5 B. f/ b: ]8 Y$ S
/ c5 Q: x1 p+ ^, j, e* |; rQ2:+ U: [$ i- D. D4 [+ M
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
d2 f+ L) V3 S如果我想得到GA算法中一个收敛情况,那该如何来得到呢?+ P ?! e8 E8 }7 r; y) x; @1 ~' d8 {
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
9 H! i) m5 I0 f. r/ X0 _有没有可以直接在plant中显示的方法呢? |
|