|
Q1.
! i, j4 _% g+ V: M; F( P3 B2 C我的疑问是第四章中,用来做进行适应度评估的Function函数, W! ^: }% @% G7 f) U
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)/ C8 t+ H7 d& {. ], i3 v
但是在function函数中,书中给出了
+ V0 n; g/ }5 d& {) P+ Jfor i:=1 to Stations loop$ I1 z7 A8 }, Q1 P
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
S5 e7 i/ G+ l7 V5 T. E" [stationIndex:=StationIndex+Mu;--这个也能理解# u" f9 d d7 k8 A, b- Z0 i
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
/ w: U' _* s) mStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
9 n; t$ Z/ h, W4 L" jSmoothIndex:=smoothIndex+sigma;! m! t+ u ^ {2 X9 R$ N8 e
next;
+ N5 S" R/ F/ \$ [4 HStationIndex:=stationIndex/Stations;
# H/ K9 q" `9 TSmoothIndex:=sqrt(SmoothIndex/Stations);
- A& l; {$ }" z/ m; G7 h6 I: J3 O2 n/ W% Y
Q2:8 p" }" S! {% t# f* a+ |: v
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
$ Y$ z& X, I& g* L: `如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
7 e/ a9 r) D: t4 ~; ]) |将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理? H# a9 m8 {) _ d$ m: J+ Q
有没有可以直接在plant中显示的方法呢? |
|