|
Q1.
; ~' Q8 B% D. L: D. h" s我的疑问是第四章中,用来做进行适应度评估的Function函数
8 ]4 q# o q3 [6 y0 l/ D其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
" _% ]6 p; f! p$ y但是在function函数中,书中给出了
- I$ L% X0 ~6 D& E9 `! [: ufor i:=1 to Stations loop
; ^( U! j) z' Pmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
7 \( P( M+ |1 ?stationIndex:=StationIndex+Mu;--这个也能理解
3 m: @9 {+ t- ~9 K& y z% c Tsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解" ^7 O2 T) O) u( |; y& o- m
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?2 L- r3 G! S# F' C. H5 z9 e0 A
SmoothIndex:=smoothIndex+sigma;
6 @& ] l O, r% Enext;
2 Z0 Y2 ?8 }; b6 D9 YStationIndex:=stationIndex/Stations;9 P2 @6 U1 t; g' _( t2 G" @8 }. M
SmoothIndex:=sqrt(SmoothIndex/Stations);2 K+ y: C4 s( n
) d, [0 \% { ^4 @, |8 e3 I
Q2:
7 n6 C) q# K' ~同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
& w: f3 @; p) x3 F1 E. c+ o" d如果我想得到GA算法中一个收敛情况,那该如何来得到呢? z9 |/ h/ }7 f% T% d/ \
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
; I, W4 I: {8 e0 h有没有可以直接在plant中显示的方法呢? |
|