|
|
Q1.
1 |/ b% E' i$ c/ ]& ~我的疑问是第四章中,用来做进行适应度评估的Function函数
3 u S1 F# G1 n+ H- y# w其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)+ e+ b6 Z+ c: O* }2 z: r4 A4 _
但是在function函数中,书中给出了
# ^) d: i7 X9 U8 y/ @for i:=1 to Stations loop
* B$ f5 s4 N8 B* d6 q( qmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
, {0 |* d3 P& ?* |% n+ R* MstationIndex:=StationIndex+Mu;--这个也能理解
3 ~- p+ w0 o c' @2 t( ~, H5 f3 Fsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
: l7 h$ |) F- M m" ~9 j& `4 b' [StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?7 y: T+ F3 n3 q) n8 N
SmoothIndex:=smoothIndex+sigma;- {7 I/ u1 Y3 K" T
next;
0 M6 l/ T6 E5 VStationIndex:=stationIndex/Stations;
6 V( T0 R- c3 d: t9 y9 q% K' o" G: lSmoothIndex:=sqrt(SmoothIndex/Stations);
1 m& i5 d0 g$ R% c
" F7 h6 B% F; j6 XQ2:
3 T4 E! h* ?. a9 {; x0 v同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
3 s4 Q. H5 ?* g4 O0 ]2 u$ R如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
+ C4 U$ ]5 P+ @% f$ F u% x将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
0 E0 U! m( F. p! z+ a5 f有没有可以直接在plant中显示的方法呢? |
|