|
|
Q1.
2 L8 v8 i, k. ?0 z5 l9 J3 t9 F我的疑问是第四章中,用来做进行适应度评估的Function函数
_6 m* v! V. l: {其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
+ C$ S2 O/ g0 B) D但是在function函数中,书中给出了5 V2 U( Q! H1 F, ]0 y* F
for i:=1 to Stations loop
* d1 K% }2 I) t/ C. U) jmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
7 b- p8 S8 r. G4 z% lstationIndex:=StationIndex+Mu;--这个也能理解8 m) P) v/ I- F1 |) Q0 I% }
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
: s( t: z( O4 qStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?% O) ~) n$ T& }
SmoothIndex:=smoothIndex+sigma;
. a* x% x( b* W) \, @8 U- ]0 lnext;# o. A" }% U% K! p3 Y4 Z( b/ x
StationIndex:=stationIndex/Stations;1 C: T& p+ c! _' I
SmoothIndex:=sqrt(SmoothIndex/Stations);" R( E" \! P( f5 Y) a6 X
$ u, ^, r+ {, BQ2:
3 F! s0 }2 B$ s6 Y同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。# G% } {% ]# J* T
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?9 w, F& b+ t- l B+ \- K% m
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
& U! q- f2 Q6 h) R: l6 q" o有没有可以直接在plant中显示的方法呢? |
|