|
|
Q1.% M) |6 q$ K3 Y+ r' A
我的疑问是第四章中,用来做进行适应度评估的Function函数
$ H/ T& r% w. S8 L0 L. X其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)) {$ Y7 D1 p+ Z/ @3 A" z
但是在function函数中,书中给出了
& T: _* j7 g2 F `. Vfor i:=1 to Stations loop
8 Z4 }$ A% V! jmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;, J9 W, `3 @# Z
stationIndex:=StationIndex+Mu;--这个也能理解
* F% Z6 }" k- k6 ~: ^' rsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
. p+ l& f2 h7 |& ]+ UStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?% G+ H1 L1 Y9 j: `1 M% N$ S
SmoothIndex:=smoothIndex+sigma;
) c- ]) o$ u2 z; ~next;5 ~8 s5 h* Z, q! l; U6 U
StationIndex:=stationIndex/Stations;
2 q5 g) z) r9 c3 i( ^* t( bSmoothIndex:=sqrt(SmoothIndex/Stations);% @2 _+ e/ a' m' Q( ?) v2 X/ B X
6 b2 K. G: o1 d/ J7 `Q2:3 o( ~. ~0 @2 V9 P
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。 ~5 r! [2 b5 U+ K7 t+ g
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
) X! y! q( W# C4 k将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
3 y+ X0 R2 ^4 m8 G有没有可以直接在plant中显示的方法呢? |
|