|
Q1.
: B }+ a% b5 R: m我的疑问是第四章中,用来做进行适应度评估的Function函数% r" E y% B3 K7 r3 P9 C: t1 \/ E
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)- q6 [- B4 O, I+ i. V1 M3 D2 |
但是在function函数中,书中给出了
1 a. u- g% h9 ~for i:=1 to Stations loop# Y5 z" v L3 t4 H( |
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;6 J$ Q" N* H; F! s4 M5 O
stationIndex:=StationIndex+Mu;--这个也能理解/ R6 c1 \ S, q' |
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解* G, Y, h" v' s7 y! M4 }
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?2 X4 F& O. V: H- \
SmoothIndex:=smoothIndex+sigma;
6 W& g: s3 s m+ bnext;
; \. C- g/ N! ^8 M% G* B; zStationIndex:=stationIndex/Stations;
* Q6 P/ l9 C7 k" W4 i; c+ USmoothIndex:=sqrt(SmoothIndex/Stations);
2 T9 _, ]" I6 ], ] t0 l! m' |+ H/ w" E- g- _: O
Q2:
- b" p2 d4 Q) k) {# J同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
+ x9 z1 d q; \2 f9 u5 i4 W如果我想得到GA算法中一个收敛情况,那该如何来得到呢?( {0 c }; _" e$ g. ~
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?1 I, B1 h" L4 u; U
有没有可以直接在plant中显示的方法呢? |
|