|
|
Q1.
/ R: J& K8 |+ K5 f' I" x- ~我的疑问是第四章中,用来做进行适应度评估的Function函数
/ J( ]6 }, D2 _1 u其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
4 M. K2 V+ n9 c7 s4 Q但是在function函数中,书中给出了
+ u; a, m1 j3 R9 z% [for i:=1 to Stations loop c- l7 R U" G5 M% N
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;3 s* ?5 y$ h: d8 A% e
stationIndex:=StationIndex+Mu;--这个也能理解
3 d+ }# ^3 }6 Isigma:=Mu*Mu;--这个用来求平衡指数的,也能理解" _) Y- }! C o ]
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?) ], I7 Y+ t3 m, }3 y
SmoothIndex:=smoothIndex+sigma;
X2 N2 f5 [$ P4 [, c7 A: Nnext;
1 }+ P& J$ j7 _. P4 [* QStationIndex:=stationIndex/Stations;2 [ d5 s; e; r: c2 |( \+ Q( P
SmoothIndex:=sqrt(SmoothIndex/Stations);9 O( B7 _$ U% l/ E) O% g
+ w5 r1 z* @6 p: a7 B# Z+ {
Q2:* s! T/ ^- ?: Y$ ^+ g# {" [
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。- n& A1 ]/ W. {2 {" T- Y
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?5 H7 C6 g0 B& X8 M- \' c( r$ C G. }# D
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
9 P- O! c& G5 t* v; h' g9 U# E有没有可以直接在plant中显示的方法呢? |
|