|
|
Q1.
( Y! }- r- X1 e0 Y1 X% o$ Y我的疑问是第四章中,用来做进行适应度评估的Function函数
% q/ q3 g/ g2 x9 L. f" b其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)- r' ]0 O; i" B9 N8 _; @
但是在function函数中,书中给出了9 u1 Q8 R, y/ |4 y% k' l
for i:=1 to Stations loop
; _; P" S4 w/ V. u: O% B$ Nmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
* c& w6 f% E7 C6 O& zstationIndex:=StationIndex+Mu;--这个也能理解7 Z9 s/ _/ A6 ~8 {$ e
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
4 K2 o/ n7 K2 }; E% G1 v7 f# WStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
8 E+ U) |6 y6 u' P: A4 QSmoothIndex:=smoothIndex+sigma;
) w5 ~# D4 D, fnext; A' ^: c) L& Z* @ Y
StationIndex:=stationIndex/Stations;
+ B! W: `/ Y) }( Q' g- g$ ^' l1 y6 I4 ^/ NSmoothIndex:=sqrt(SmoothIndex/Stations);/ t) Q" f' n; O8 \" w
- ~5 s& b6 g" g3 @
Q2:- R3 F: L- X9 M- S* Z4 \
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
6 \2 s# M3 z l$ O+ _5 d如果我想得到GA算法中一个收敛情况,那该如何来得到呢?4 e( b- {, j. {. R5 ^
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?9 H6 @( r% U2 j1 T4 ~0 e9 |
有没有可以直接在plant中显示的方法呢? |
|