|
Q1.
" M5 s1 C: f0 S2 V2 |8 x, q我的疑问是第四章中,用来做进行适应度评估的Function函数
; e( r+ [& X8 ^+ K; \其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
4 g* M3 T, S8 O; v1 Y5 I; F但是在function函数中,书中给出了
' D; _ B8 X% G, q3 bfor i:=1 to Stations loop
/ v5 G) b% A1 I- t' nmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;% o4 c0 F6 l# o+ ]* g6 V
stationIndex:=StationIndex+Mu;--这个也能理解$ H" M n0 v9 ?, h# t! [( m2 p
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
: M/ F; {- Y: y/ Q5 |StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
1 w: v3 K3 [! O, W9 `, Q" L# TSmoothIndex:=smoothIndex+sigma;' E- G6 E3 |: ]2 b
next;( r' S2 P' I) J0 K* E& K# W
StationIndex:=stationIndex/Stations;
. q- C7 h' z4 p1 E, u0 }1 ESmoothIndex:=sqrt(SmoothIndex/Stations);2 l: N! s# X( _- N* M
! a4 k$ c, n. m4 B! j" v9 N, D4 t
Q2:
" V1 ?6 n( i/ h/ V( U同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。% p, }; ]5 {% u$ O# ]5 M
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?$ q3 m" F8 ~: \% f8 l
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?' z8 n0 P5 R7 `& n
有没有可以直接在plant中显示的方法呢? |
|