|
|
Q1.
3 U j6 B l/ S8 K8 G我的疑问是第四章中,用来做进行适应度评估的Function函数3 k A3 R9 E; j% \
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
2 _9 V4 [! \" [1 W但是在function函数中,书中给出了- u5 ]' j9 U3 V6 V- W
for i:=1 to Stations loop
$ [0 M/ r) p3 c5 O7 H8 c4 smu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
6 f1 Q, |0 S& \3 b+ A+ v$ N3 F8 X% cstationIndex:=StationIndex+Mu;--这个也能理解
. V: K7 r( Q0 W+ n# A# s3 osigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
0 @- @ @) A" k! U& WStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?% z- ]" r2 U- C
SmoothIndex:=smoothIndex+sigma;
7 B7 r# e1 y4 A3 i" X. xnext;
# [ d! P3 {7 U7 C+ {0 \StationIndex:=stationIndex/Stations;+ G* m5 b5 U/ a, Q& _! Z- \
SmoothIndex:=sqrt(SmoothIndex/Stations);
* r8 p* Y$ K) C4 ?6 d* R8 i% }# p4 |' H7 G$ V! c( e
Q2:
( r/ x6 q1 c. ^3 |2 o% e& x同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。% l, d( T1 O# T" F( R2 C+ s+ n% d
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
5 |, t) k1 u( d0 l9 l& R2 A! z将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?2 f8 a- @& J- `+ \4 J" h
有没有可以直接在plant中显示的方法呢? |
|