|
|
Q1.! {8 l- @# @' q0 b% B6 J4 R
我的疑问是第四章中,用来做进行适应度评估的Function函数
# g1 N" O }4 y其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
6 Z; r: B( [& ]/ D* J& v3 }但是在function函数中,书中给出了
5 d. v% o- Z6 H- s0 ifor i:=1 to Stations loop
6 ]7 |; V+ g5 ]6 J0 Cmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
( j4 D( }+ T; p; \/ sstationIndex:=StationIndex+Mu;--这个也能理解
# _6 k6 R$ |% s4 T2 P M8 p# z) wsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
4 z2 k9 f2 d1 A! v$ M; LStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
: X: m4 o/ g: x z8 OSmoothIndex:=smoothIndex+sigma;
; c! }8 u9 }! |1 m' Qnext;5 o* [ X* H3 [* r, ]3 D
StationIndex:=stationIndex/Stations;! N+ Z, @9 |9 _1 w
SmoothIndex:=sqrt(SmoothIndex/Stations);
7 C, D) y4 [$ e* e9 t
& b j3 q& p, l' R% UQ2:
/ C9 a4 K: n1 ?+ \4 x! h5 `同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
7 H7 C! v: o6 z! K$ E" K如果我想得到GA算法中一个收敛情况,那该如何来得到呢?0 U7 F8 j3 h* |: Q. W
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
5 _, s9 q4 V; @0 {& [7 O7 s有没有可以直接在plant中显示的方法呢? |
|