|
|
Q1.
5 T+ p+ ]' H' `8 M/ v我的疑问是第四章中,用来做进行适应度评估的Function函数2 o' J- M6 X/ a
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
! L5 d0 T( K9 H; I) c; B, N但是在function函数中,书中给出了
$ C3 E" E& M, I' K$ r& tfor i:=1 to Stations loop
& ]- Y# n% I1 T& V% i( O7 J7 |* P$ Mmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
1 o% ^) H1 l6 estationIndex:=StationIndex+Mu;--这个也能理解
" n( F$ C( q, Y5 r9 Osigma:=Mu*Mu;--这个用来求平衡指数的,也能理解4 E# j1 {" ]3 F
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
* W; P" L3 U" a3 d7 m8 \& d: p+ i1 f, }2 CSmoothIndex:=smoothIndex+sigma;
* ]. ^4 a9 A8 V! T( znext;
3 `1 w Q, e7 v; k eStationIndex:=stationIndex/Stations;
3 O: X+ @0 @3 zSmoothIndex:=sqrt(SmoothIndex/Stations);: b* N- q) |# s# Y1 \- x
6 r! w. S5 K: f$ d4 y
Q2:# U0 a" F( ?. H% j u
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。/ w0 a0 Z5 I8 X/ p! [3 \$ @
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
" |, a. @/ {8 x8 i- A$ X# [将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
9 j5 U% g6 X4 |8 V' @! l6 U有没有可以直接在plant中显示的方法呢? |
|