|
Q1.
, S5 i" q( j1 e) V) u5 ]我的疑问是第四章中,用来做进行适应度评估的Function函数
" W: Z" W7 T- N$ U8 L其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
- ` C, v9 v( U% g8 I z9 E# {但是在function函数中,书中给出了
3 q2 V$ N: d f h: Zfor i:=1 to Stations loop9 L' r s0 _: X7 G$ |# {7 ]( k
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
2 k6 P* R( E; ^. q7 T ]4 XstationIndex:=StationIndex+Mu;--这个也能理解, t& ]( D; I; @; B5 w4 A: N
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解7 q% z c9 \; U' t; [; |/ e
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?3 a z% i0 K5 v. r e
SmoothIndex:=smoothIndex+sigma;
v4 J, c x6 @next;% |# h9 N& Z {# u
StationIndex:=stationIndex/Stations;
' ~# ?/ y( u Q' ~- u* sSmoothIndex:=sqrt(SmoothIndex/Stations);; j- G; N" \' g5 I- [3 Y! C E
+ g" q+ ^% l" e' d) h, m! ~Q2:
- F' M/ i2 H+ a同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
- g" m, I" [( f# x! [如果我想得到GA算法中一个收敛情况,那该如何来得到呢?* r) r8 {7 M2 @, u D! k
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?) V0 u/ L; Q; _: ]! H
有没有可以直接在plant中显示的方法呢? |
|