|
|
Q1.
8 k( c& r& `$ q% E6 O6 h我的疑问是第四章中,用来做进行适应度评估的Function函数
% e1 R" x3 r' `! z/ f, s- o, J其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
% M/ M3 [" W* @但是在function函数中,书中给出了
/ J8 M) E% ?% h4 Y7 Ufor i:=1 to Stations loop; E; t1 \& }' g% E
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;: a+ H( J7 _( ?; h- ]" W; i
stationIndex:=StationIndex+Mu;--这个也能理解
0 r6 S4 H" m, O. M. E3 msigma:=Mu*Mu;--这个用来求平衡指数的,也能理解1 H8 Z+ U& E; {# e; r
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?) e* _0 i* r+ A' {' D7 r) K* q& u
SmoothIndex:=smoothIndex+sigma;
7 c" r! `- @' }: B9 [, L: f! snext;; g9 E* g3 ~; k3 a. a
StationIndex:=stationIndex/Stations;
- C! l3 b0 x7 ~0 F [SmoothIndex:=sqrt(SmoothIndex/Stations);
0 s2 ^' `7 p% m. L) a8 u9 S
5 A: r# ~% Y& v1 p+ T( QQ2:
3 y' @- z( W; L% q$ h同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。2 U: B" b w. ?
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
' D k$ W, J$ f8 J$ m5 O7 y3 G1 \将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?' ?: ?% p* A# ]; v7 f3 ]! A
有没有可以直接在plant中显示的方法呢? |
|