|
|
Q1.2 F. \ L8 q6 p: i- |
我的疑问是第四章中,用来做进行适应度评估的Function函数$ B! Z* f4 k& {& Q" |. L
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
* z$ j9 ?7 s2 h" ?: [2 f但是在function函数中,书中给出了
) m& G$ |; @3 W8 j# f1 ^for i:=1 to Stations loop
U& X: y: ]' z# zmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;! \; T$ P1 F% s9 v9 M5 ^5 f
stationIndex:=StationIndex+Mu;--这个也能理解" U: y8 y$ @ a
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解% G+ c4 H, M8 P7 h) e2 d
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?2 E$ t" `: Y, g2 H6 V$ u% L
SmoothIndex:=smoothIndex+sigma;) z4 C- d0 Y* Q3 r
next;# q' ^6 |5 {1 M$ S x, p
StationIndex:=stationIndex/Stations;! g/ v( |* S, Z; |0 P. ^! l
SmoothIndex:=sqrt(SmoothIndex/Stations);. {, L5 V2 R+ k- a, \
5 C: W6 O, l m1 l. QQ2:# j2 `7 u) d) [" w
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。# b8 |- D6 p* z& V& w9 \5 U
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
$ b. R& o; F/ f4 Q, R: \- p0 D& ~将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
0 }. D; _3 x: G* t$ @: E' N有没有可以直接在plant中显示的方法呢? |
|