|
|
Q1.
# B' g0 `0 c. ~4 w1 B! |我的疑问是第四章中,用来做进行适应度评估的Function函数! X2 Z i/ r! l' F) t
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
' c2 Q7 A3 u: j但是在function函数中,书中给出了' o W' w/ ]$ P J: B: x- s% }
for i:=1 to Stations loop; S0 ?- J* Y& D; P* v% e; x8 X
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;( ^: m+ L/ ~- i3 `7 W H5 p$ _1 l
stationIndex:=StationIndex+Mu;--这个也能理解
1 A/ W' J7 \4 e% }9 ysigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
6 }4 t4 H* |( l5 jStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?& u# j9 g" i# ?8 A1 }; M1 K
SmoothIndex:=smoothIndex+sigma;
8 M1 y; u% B. E% M3 C6 qnext; I* V) b v- n% d% I) R; Z% v+ y, I
StationIndex:=stationIndex/Stations;
$ ~3 G+ V/ h& r* kSmoothIndex:=sqrt(SmoothIndex/Stations);3 @4 [ w% J7 l
" g' `% @1 N% j& h# q: R) ^Q2:
: B& [ ^) V9 l8 @; @1 a同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
; U0 _5 D* T4 s1 I! W& U& K" K/ \) X如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
% x! O, f7 x/ G# }" g" u将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?5 p/ o4 F4 j4 ^
有没有可以直接在plant中显示的方法呢? |
|