|
|
Q1.( a. |' t8 l! o
我的疑问是第四章中,用来做进行适应度评估的Function函数1 X2 z8 K) D8 L' N
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
0 V8 }4 x* V/ s* f" O2 N4 ~: w但是在function函数中,书中给出了
' G1 _/ k$ k: i4 R& e* x$ bfor i:=1 to Stations loop, @+ L' G: b6 G5 L. B
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
3 p# \) { Z+ B& ZstationIndex:=StationIndex+Mu;--这个也能理解
* j) t4 a% e4 Msigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
$ g9 b9 t, ^- dStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?) W$ Q! H8 o* O1 B8 T8 q" b5 h U
SmoothIndex:=smoothIndex+sigma;
( I8 F% W# D2 s* _next;
1 c' d3 t4 O. }1 r- K) O* G) ^5 Q$ wStationIndex:=stationIndex/Stations;
, c: V; A+ K- u, ?8 C. d; OSmoothIndex:=sqrt(SmoothIndex/Stations);
1 \* L6 h3 N8 I
- R& d% S$ ?) b! ?4 _Q2:- y i' s8 Y. T# s! g' i- G
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。. _' T! [( N8 B
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
2 K. x" y! A: u1 H; J+ B+ N将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
: J' Z- n/ ~: L! C2 f( u2 [有没有可以直接在plant中显示的方法呢? |
|