|
|
Q1.
% i; S. m9 Y8 U/ u& Y. `我的疑问是第四章中,用来做进行适应度评估的Function函数" _' X: v, L, f! U; C" ^, U
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
/ }/ R f+ f) _! S& o X$ {4 [, P但是在function函数中,书中给出了
! p7 n: H* @( I: D% {$ ufor i:=1 to Stations loop2 P0 [" U, D4 h9 T( e# z' ^
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
. o$ ~" n5 P8 X8 V1 VstationIndex:=StationIndex+Mu;--这个也能理解
8 l7 ^: X! Q5 S$ _# Esigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
4 R& o* }0 F# Y3 l" ? a4 w! KStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
% K* f# f' g2 N$ LSmoothIndex:=smoothIndex+sigma;5 v7 N! V7 u; B( t
next;; A+ I2 q2 }, u6 L, Z. ]; a
StationIndex:=stationIndex/Stations;
( r. s* y6 X' K' Z1 [( GSmoothIndex:=sqrt(SmoothIndex/Stations);) \( G( _2 b! x8 c3 ?
) h- }+ F5 r5 j9 g; S
Q2:
3 k( b0 `0 V) d5 n+ ^同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。" E3 _ w$ I2 }' ]
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?7 K1 d1 X4 h9 h' u( _
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
& h' `# `2 [# b8 C, F有没有可以直接在plant中显示的方法呢? |
|