|
|
Q1.
% a0 _- T! Q3 Z6 H+ N我的疑问是第四章中,用来做进行适应度评估的Function函数) {) R p. ^- {( I2 G4 w0 t
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)6 O2 P' x) |, F$ G7 Y
但是在function函数中,书中给出了
- Q, j; B7 V# ~9 y: |$ t6 l7 dfor i:=1 to Stations loop3 w# l$ h; J3 g \" t
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
! q5 m# D, W$ P$ R6 sstationIndex:=StationIndex+Mu;--这个也能理解
2 Q1 P) {/ T# @ Q7 \& k. rsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
) Q7 q. l5 G- S; P3 [6 OStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
$ S: {* h( N1 j5 D2 qSmoothIndex:=smoothIndex+sigma;& D' X5 k" M; t8 Q
next;
1 i) v- W" I+ ~6 L5 z; V/ KStationIndex:=stationIndex/Stations;. D6 K& {0 [) d+ Q: q+ l2 e
SmoothIndex:=sqrt(SmoothIndex/Stations);
: ~8 B( g! J7 x. W4 P; d6 b
" ^2 N' ~# u4 S( @, w; S+ mQ2:) C: V w! c% K+ s' ^
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
. v4 ]6 \3 W+ i6 t; y& F如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
$ y+ k9 t; H. x+ j$ I将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?$ ~& J: [8 ?/ u4 T" Z( V3 A
有没有可以直接在plant中显示的方法呢? |
|