|
|
Q1.
7 R) Q9 Z3 f% D2 ]1 |& }0 h我的疑问是第四章中,用来做进行适应度评估的Function函数
' Q; B) y# K+ o; u其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
. E% I- b5 C1 J: A9 s8 m/ V j/ ~' B5 E但是在function函数中,书中给出了" Y6 D; n( E* X* c2 V1 y& q
for i:=1 to Stations loop
: [1 Q6 {/ c! Q3 f$ L4 n% y1 A0 bmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;+ e6 G; {0 N. ~3 d; }& v& W. k
stationIndex:=StationIndex+Mu;--这个也能理解
[6 C5 m' m6 g3 {9 N/ W; J% R6 U" _/ esigma:=Mu*Mu;--这个用来求平衡指数的,也能理解& z3 n9 O8 x# k3 U/ v
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
; [( G) G2 S6 l& @0 L2 R9 X# qSmoothIndex:=smoothIndex+sigma;
$ a, y w4 \$ hnext;) f5 h( Y5 l) @. X! k
StationIndex:=stationIndex/Stations;0 h# } W) L+ Y9 f
SmoothIndex:=sqrt(SmoothIndex/Stations);
* U$ R/ }9 |% S9 [, F. V$ V% I
/ I2 V% B/ x4 D2 qQ2:. w! U' G* G z* z. s3 _8 v3 a
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
2 H; B7 p. G I2 E; b如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
( H% N' P2 S( h+ b将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
Z6 c7 o$ }- W; y8 k有没有可以直接在plant中显示的方法呢? |
|