|
|
Q1.
: A9 i- z+ @% F, t* F+ f我的疑问是第四章中,用来做进行适应度评估的Function函数. ?$ | ?1 S5 ]2 Z
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
6 d2 }! P& Q& U" x但是在function函数中,书中给出了; j" V$ E( @, o+ V7 K
for i:=1 to Stations loop
M; x8 z2 ~$ O- ~* J# Vmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
( W+ t: _ [' b; l2 ~- NstationIndex:=StationIndex+Mu;--这个也能理解
* d' A: j) R+ Isigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
; y- S ]8 ]( }4 ]StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?! i+ Q& y" Q; E' i
SmoothIndex:=smoothIndex+sigma;& F. n7 Y) d- x2 x. s* ~$ j
next;5 a5 ]/ a% F1 k& G# ^
StationIndex:=stationIndex/Stations;
. E$ t6 \% Q% M) U! ISmoothIndex:=sqrt(SmoothIndex/Stations);
+ L9 i( [5 X, J. `2 r% e0 S* O8 R% F* ~/ ?* R
Q2:
, C' M' H( s! g E4 ?! ]. T, G同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。0 s; w8 d* Z& @/ M9 [
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?% m @, Q4 G3 z- ]- y
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?% s& _- Q( g, j
有没有可以直接在plant中显示的方法呢? |
|