|
Q1.
0 B. R7 X2 M& X( p" {2 t+ G5 x# A我的疑问是第四章中,用来做进行适应度评估的Function函数, [% ^3 z/ a3 k
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
( q) Z! p1 \ B3 ]但是在function函数中,书中给出了' M" E) M0 Y9 }9 r
for i:=1 to Stations loop
$ s* r V+ }% E: G& g7 `mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
! W- D6 \: z2 i9 r) e. BstationIndex:=StationIndex+Mu;--这个也能理解4 D( r2 Y% E3 b9 Z y1 N: m
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
% a/ m2 t6 n E" g% h! T- @! f# oStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
6 e% f4 X) n+ K& L& LSmoothIndex:=smoothIndex+sigma;% J2 n1 i4 r; [1 n9 l: o
next;
n& `% E4 N+ }: o7 F. j% G1 S. z( v& @StationIndex:=stationIndex/Stations;. M/ |: d- ~6 Q! n: Q! Z5 L' O
SmoothIndex:=sqrt(SmoothIndex/Stations);6 |1 _+ e5 v+ L0 ?5 I; V9 w
! x% N% _0 X1 ]3 z9 XQ2:
5 T+ f9 z7 a/ A# v. C; P同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
O- |9 G- y' ~. v- u如果我想得到GA算法中一个收敛情况,那该如何来得到呢?; c8 ^$ t+ L! T
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
/ @+ D, j0 m. D" z6 I# x) t有没有可以直接在plant中显示的方法呢? |
|