|
|
Q1.
' }+ G3 ?2 e4 m p+ x h0 {我的疑问是第四章中,用来做进行适应度评估的Function函数
6 }& S6 R$ H9 w7 H6 v其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations): j0 V; `" c% \+ V* y2 y
但是在function函数中,书中给出了
8 Y: h! t' W# I3 Ufor i:=1 to Stations loop
0 S6 t' S3 @8 umu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
( a" j2 O, x$ G9 pstationIndex:=StationIndex+Mu;--这个也能理解
3 H( S0 I* H8 K- `% G- ~$ }sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解4 u' K5 f% l: h6 Y6 d7 Z1 m/ W& v1 `" _, }
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
0 h I8 ?3 \0 f, M* r: P8 eSmoothIndex:=smoothIndex+sigma;
* w+ v* B; D1 \( p0 z. M q' E% V. vnext;
?1 ~+ j# N3 d8 L% HStationIndex:=stationIndex/Stations;7 ?2 p* w3 A0 K* W- d* o) A
SmoothIndex:=sqrt(SmoothIndex/Stations);9 x1 Z3 `6 Z# t$ N, A9 n' i
* ~* E4 A7 I$ |Q2:
7 [, j8 T1 v0 n* ^同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
8 K _! u: f$ e1 D% a% ]1 h( @如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
: F8 M T& E6 w$ b+ u将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?5 ` u( S: i* m% y+ O! H& H
有没有可以直接在plant中显示的方法呢? |
|