|
|
Q1.
% l7 p- _' Y* _! ?我的疑问是第四章中,用来做进行适应度评估的Function函数$ V& q; E3 @9 {2 ?1 `
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
4 O( o3 v/ S; m% d8 E8 o但是在function函数中,书中给出了6 p$ C4 \- q/ E# q/ g
for i:=1 to Stations loop
3 G- t1 w" G, H: imu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;" L8 K/ F% Z& b
stationIndex:=StationIndex+Mu;--这个也能理解: C k8 [ K/ s" B9 D
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
4 _# D$ `, t) Y+ e( M3 d2 AStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?1 u! S/ I( G' Y
SmoothIndex:=smoothIndex+sigma;
0 _' H: r5 C' y. Y0 qnext;8 O* \3 g' K3 _' x# c' G7 G
StationIndex:=stationIndex/Stations;3 n* s4 ~7 `/ A& [+ ^
SmoothIndex:=sqrt(SmoothIndex/Stations);3 c* G& [- m, F r; V0 b
2 d* g' ^; o% M- d: N# x; `Q2:
) G- Q$ {( D0 [4 X同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
! Y' ]. D4 Q. [4 F/ N+ e. U- o如果我想得到GA算法中一个收敛情况,那该如何来得到呢?! C- y3 j8 q: v% f8 }6 t y
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?8 E1 `3 w; [- u) m
有没有可以直接在plant中显示的方法呢? |
|