|
|
Q1.9 t4 r j! Y9 k5 J* |- I3 y
我的疑问是第四章中,用来做进行适应度评估的Function函数8 [) j# q. n5 S# [# o- t
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)+ M! X0 z( o: A, d% r
但是在function函数中,书中给出了
; ]5 h' ]! g! B$ s- B& o; tfor i:=1 to Stations loop; H) z. f* p8 A5 U9 u9 i
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
0 [& q8 ^" c% ] @- EstationIndex:=StationIndex+Mu;--这个也能理解
0 y, c" N. a- O7 nsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
$ Z$ R1 a* p$ h" P; p: q1 D5 MStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
. L! K/ C2 i8 ISmoothIndex:=smoothIndex+sigma;
- e. h0 m1 z; [# @9 pnext;
+ n4 ^9 d$ W& ]StationIndex:=stationIndex/Stations;
; w4 P; b2 c' g; `1 fSmoothIndex:=sqrt(SmoothIndex/Stations);
( _, [( x8 y" B8 w
& X a2 O9 B0 Z. Y* G- {9 pQ2:
0 e0 N( c% l* j; G- c, u) J b# I同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。# ]/ a. q6 w4 d- h
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?, A6 p2 M6 g# N3 S2 I$ a
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
* Z+ e6 @* H4 ]/ `+ h有没有可以直接在plant中显示的方法呢? |
|