|
|
Q1.
3 k# Q, t% W: l1 r4 q我的疑问是第四章中,用来做进行适应度评估的Function函数$ b% u: Q+ C- d7 C
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)( |. a A2 `( t) {. u
但是在function函数中,书中给出了# J5 Q+ N5 e- h& \0 X/ N- i
for i:=1 to Stations loop) @( `) q# k0 N; Z
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;- {1 [. m8 H* x. V
stationIndex:=StationIndex+Mu;--这个也能理解; W H2 s8 R8 W, `( o. W2 U
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解; B( M$ n; [& X/ h: |3 Y7 [# f
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?" g6 M8 v8 X9 n! b
SmoothIndex:=smoothIndex+sigma;
' V* v8 g6 v9 f4 {next;, h, a, f( V, o3 J
StationIndex:=stationIndex/Stations;
9 z3 v0 i6 l1 dSmoothIndex:=sqrt(SmoothIndex/Stations);0 e( h+ O. }% T" ~+ e
$ Y+ M! `: X- J7 PQ2:
2 ]+ j2 b2 ?& _2 Q! ~7 ]同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
) R, s% L* g* ?" \% x如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
9 A; K; D4 B# k0 Y a! \将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?) X7 r3 k) c1 L- u% J2 Z! Y$ k
有没有可以直接在plant中显示的方法呢? |
|