|
|
Q1.
9 R" R) j) h0 e" B我的疑问是第四章中,用来做进行适应度评估的Function函数
+ t" Y& o! O$ i其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
' d/ ?2 v+ }+ X, l% Q o但是在function函数中,书中给出了
D" y% {3 B1 S# N4 Wfor i:=1 to Stations loop
! z( @! c; p4 ]* J! G: u5 cmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
+ ~* f! s$ K& w9 {4 t2 ]stationIndex:=StationIndex+Mu;--这个也能理解
& `7 i. U: I% p3 gsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解8 e2 R1 }! b; [) a2 `6 m8 J
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
0 X' t% z' ]- R& `3 V1 {SmoothIndex:=smoothIndex+sigma;( d0 \8 o, P0 N6 H9 m
next;
; a# k; V N/ F& s( x) NStationIndex:=stationIndex/Stations;. ]( A4 `2 Q z+ v$ b* M
SmoothIndex:=sqrt(SmoothIndex/Stations);
* F7 W6 Y4 y7 C& C4 W. F, G8 P G/ }3 t/ J# W& U* j
Q2:
2 L/ D: i& d7 z- `2 M: g同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
) V8 u# {( g. X+ m/ g' i如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
; E3 A& }9 e. k6 q4 w. K# k将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
8 \' `$ {, H- Q# V4 s& y有没有可以直接在plant中显示的方法呢? |
|