|
Q1.' a8 H2 s) m% e' s1 q3 h+ r
我的疑问是第四章中,用来做进行适应度评估的Function函数
( Q' j `2 j! D4 z# h其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
3 r2 U. [# n( u+ A* [但是在function函数中,书中给出了
% e! o2 N d( {8 `" Z* Ifor i:=1 to Stations loop
- ]& e0 r4 g9 i# A" d. j3 hmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;1 w* p) `6 ^8 ^ I
stationIndex:=StationIndex+Mu;--这个也能理解
' ]# e, p& Y. e' P" x Asigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
* O1 _, y+ j% _StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
) N$ m5 n, m, {SmoothIndex:=smoothIndex+sigma;* z1 u1 I! B6 x
next;2 N- Y7 P9 I1 f; U3 g: K4 Q
StationIndex:=stationIndex/Stations;, c5 B$ B2 f' {+ \9 ~
SmoothIndex:=sqrt(SmoothIndex/Stations);
: @% D4 \8 {' H$ ]2 L/ t r) E* A9 f# d
2 @ Y4 y& m6 s& UQ2:
+ y7 l! z& ~5 `) ]/ I同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。' k) [( c' ~4 r# `/ f U8 U/ @2 e8 o
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
6 u) S" Q& N% r: M7 @将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?$ j7 R9 @' u' ~2 |* T1 i0 O! p9 |
有没有可以直接在plant中显示的方法呢? |
|