|
|
Q1.# _, V, x$ Y3 X; }/ s
我的疑问是第四章中,用来做进行适应度评估的Function函数
) ~& g4 G, V. G其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations) O7 l7 v, [8 M+ ^* s) ^- h/ n
但是在function函数中,书中给出了
. R1 ?: ~" R1 P% L1 U2 l5 B7 I5 lfor i:=1 to Stations loop
6 \* ?4 o5 U0 J- L d) I; imu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;4 R$ d& C7 I; o4 }, R6 n' g
stationIndex:=StationIndex+Mu;--这个也能理解% U" X9 H P: b
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
! }) ~" ~+ F, ~# S& bStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
2 |& Q1 W2 o, O$ tSmoothIndex:=smoothIndex+sigma;( M3 q( T* u4 O4 A
next;) n/ @- u7 j$ n4 y2 S# R# P
StationIndex:=stationIndex/Stations;
. t# d8 | }: \/ F9 ~0 ~% {SmoothIndex:=sqrt(SmoothIndex/Stations);
4 F2 o/ R0 j6 F# u% u& L
* v1 I f5 Z% f' o9 n8 T' ^# |Q2:: s }0 [* a# w! R5 I
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。; m: I5 H6 K9 L/ I2 u" A
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?) i: M; a' D, f7 b
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
- f; F! l8 P/ ^4 U8 U有没有可以直接在plant中显示的方法呢? |
|