|
|
Q1.
6 y( E% V# x+ ~0 |. v我的疑问是第四章中,用来做进行适应度评估的Function函数
& X0 \: c9 l$ D7 j3 b/ u% E其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
5 J7 [( A0 L6 m但是在function函数中,书中给出了+ Q. o8 `. z' C0 M" M7 ^1 z. D3 P# Z
for i:=1 to Stations loop$ C9 q$ K! \& n$ C6 t
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
1 s; B( i0 q) @: r' }stationIndex:=StationIndex+Mu;--这个也能理解, d9 Q9 f& j9 A' E6 E3 V Y9 _
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解9 c! H, n3 p, X7 h9 J
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
5 j; }" ^$ U- W/ g, iSmoothIndex:=smoothIndex+sigma;7 y: U2 i( f! G
next;
3 N# Z+ k2 l2 M9 k1 `: N: c, N; IStationIndex:=stationIndex/Stations;9 t) p( c8 ^# A4 M
SmoothIndex:=sqrt(SmoothIndex/Stations);4 e) x1 x( x! K7 \
* C. t) H! P [* B
Q2:
' C( A; z% R* Q( q/ ~6 _6 j" L同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。2 b. z. N! H; x) w: n# Y" w
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
4 Z5 w; P, Q# q# u, C5 F0 X将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
8 [$ K4 D$ \) `& A. W, ^有没有可以直接在plant中显示的方法呢? |
|