|
Q1.( `/ f0 m) M8 V) w c( {- X. B9 f
我的疑问是第四章中,用来做进行适应度评估的Function函数* N6 a) Y3 a8 r# f
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
5 b, `/ D2 y5 n2 l& X" |) m6 L但是在function函数中,书中给出了
# ? p6 T/ [* D) ~- _* D6 }! \for i:=1 to Stations loop% A# I" W% B* i$ x3 Y& o6 J, O
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
# C- q1 L/ d# I, m" a( tstationIndex:=StationIndex+Mu;--这个也能理解/ Z& E! J5 \, s+ o/ n
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解- F- M% o- `9 f
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
2 ~$ j1 L3 |5 l+ Q8 m2 nSmoothIndex:=smoothIndex+sigma;
b2 z3 T" a- J$ r7 w: x/ Ynext;
6 w# }( i$ v3 u- s. a: VStationIndex:=stationIndex/Stations;# n8 N4 M7 U4 ]+ s: G0 N( |
SmoothIndex:=sqrt(SmoothIndex/Stations);& u. Y9 w5 s0 C3 E, ~& B
$ G$ ]! b& F+ [8 {- j" d m5 ZQ2:6 R% [" g! G) y u( Z
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。. x2 B" g8 b* o) d. `
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?& s& Q( W7 ]# \5 a! u! J
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
1 R1 L( m0 w' r6 o" l- c! W" c有没有可以直接在plant中显示的方法呢? |
|