|
|
Q1.
9 T, _3 I7 D! Z& p% j我的疑问是第四章中,用来做进行适应度评估的Function函数; D; P, }; H- n% f8 ]
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)$ h1 U' X0 @. g. w$ q) W
但是在function函数中,书中给出了
. @) N* d' c4 V& Bfor i:=1 to Stations loop
" W- B% L" [) D k6 }! j; Y+ ~mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
0 v& s3 j! ^# h) D u% ?/ qstationIndex:=StationIndex+Mu;--这个也能理解
- s3 f9 P4 u6 x7 Vsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解6 h$ y, z6 G. H7 S5 n( R
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
8 b. }6 j; S& U8 k5 HSmoothIndex:=smoothIndex+sigma;
5 Y$ p5 c# i& F! m1 lnext;6 S; O+ ]- S: m3 M) e# q
StationIndex:=stationIndex/Stations;* t- |$ J. V, e
SmoothIndex:=sqrt(SmoothIndex/Stations);- ^4 T3 x7 x# U7 B9 C. a1 r8 U1 ^0 k
+ j# x( h0 G4 F1 v: \Q2:4 M& t, @: ^. m) B# `, c1 v0 S
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
: x9 G6 R+ N8 T R如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
; R% x/ S1 b; t# U5 Z" [. {将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
2 w9 [" ~- g3 v# t有没有可以直接在plant中显示的方法呢? |
|