|
|
Q1.
# ?' Z) ]8 k* a3 i我的疑问是第四章中,用来做进行适应度评估的Function函数
! u6 _% d/ ~+ X+ ?' n; j其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
0 i; x R5 p" J+ t N5 `# K但是在function函数中,书中给出了
, F! P8 H' V! e$ I) Kfor i:=1 to Stations loop
$ L0 [( c) B" n3 h* Umu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;- k& J$ u) Q) w5 M8 \* h
stationIndex:=StationIndex+Mu;--这个也能理解5 `; p4 H$ n/ T- _% T6 s
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
. S( Z0 S y2 ^3 Z3 B dStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?: f" ~& H0 e$ I) d# [- m
SmoothIndex:=smoothIndex+sigma;
$ a) _. {0 Q; B* D" ], k# {next;
7 n/ ^4 W0 M1 V0 w8 D6 Y3 ] K" PStationIndex:=stationIndex/Stations;# U1 F/ u/ s: H' a; E
SmoothIndex:=sqrt(SmoothIndex/Stations);
+ S) ~- k Z2 Q% O- J. W
7 P7 s" b j- h" {4 b& hQ2:; d+ s7 z, F* S" N4 {8 j/ @% B
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。 z- h. n1 b6 v1 i) l8 p. X( |; d; N
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?+ b4 r( S! ^4 d
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?! p$ A w+ p" J( b g* y: q2 j
有没有可以直接在plant中显示的方法呢? |
|