|
|
Q1.% G! N4 a6 N6 q: a
我的疑问是第四章中,用来做进行适应度评估的Function函数
; z0 y0 l* [, p2 n& G其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
0 k" X% g! D! j$ ]但是在function函数中,书中给出了
@! a* k( e3 [1 q* Afor i:=1 to Stations loop
+ E, H3 x9 f; o/ j" }" U( Smu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;# j1 t0 u: I' d# [! S& Z# a
stationIndex:=StationIndex+Mu;--这个也能理解: e, M# B. J5 K7 |: \
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解9 W! h1 o7 ], B |
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?8 E. Q/ N. t5 J" F$ \+ W
SmoothIndex:=smoothIndex+sigma;9 M- w; `2 d6 E9 Y4 o
next;5 K( M* C+ \5 l& L' e8 ]
StationIndex:=stationIndex/Stations;
$ y9 r9 N* P' `4 K( {! XSmoothIndex:=sqrt(SmoothIndex/Stations);0 @) `, ^3 n; |8 H
/ G8 x4 n8 \; K5 O. J2 h5 O8 W/ O8 DQ2:
6 [: z m+ x2 {同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
+ O3 w( V: ]; J3 L* m+ q如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
+ ]- r+ Q& j- M; O; v将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?' j' {: g1 w i7 S
有没有可以直接在plant中显示的方法呢? |
|