|
|
Q1.% q0 e- {1 w; J* N
我的疑问是第四章中,用来做进行适应度评估的Function函数0 |+ B0 T+ w3 [8 F3 H; x: |5 g) B
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations), l7 x9 i- J6 e8 s# d! ^: ~7 G
但是在function函数中,书中给出了5 G* ]' l6 d0 z0 W! ]: T
for i:=1 to Stations loop
* Q- R. v+ j5 q- {mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
v* E# q9 S# k5 s& L2 M/ ?& |stationIndex:=StationIndex+Mu;--这个也能理解' d1 R8 M" m7 J
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解5 r; c* h2 |; V* ]* I% ~- O i
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
2 C4 U. I4 ^: ^! A3 W1 ]7 wSmoothIndex:=smoothIndex+sigma;9 L: O6 P* C4 S( _8 o5 q k
next;
) l, A) T, N4 X6 o* aStationIndex:=stationIndex/Stations;
( O' d) _ m2 M( ?; uSmoothIndex:=sqrt(SmoothIndex/Stations);
7 V: U7 b5 Z3 f4 r
* |4 f: u1 }6 G1 j7 r1 G8 C$ uQ2:- i8 ?/ C: m# Q. R- m7 P" ?
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
* L, H# I7 A$ p4 I4 R如果我想得到GA算法中一个收敛情况,那该如何来得到呢? z' r, P1 Z5 s
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
8 s: f/ |! v4 B$ M6 |有没有可以直接在plant中显示的方法呢? |
|