|
|
Q1.
: Q+ e9 e( h+ ~+ i. F我的疑问是第四章中,用来做进行适应度评估的Function函数
$ H) i }2 \8 i. v% X& \" I其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
$ r: h$ e7 Y3 J& p" N- ^0 F; B0 S但是在function函数中,书中给出了
# J; W, Z: m7 {+ v" Afor i:=1 to Stations loop
' B: T! D/ Y) u0 {7 {* p! tmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;' f4 Z2 \6 G. b' l2 c6 @+ r# K; I; ^/ U
stationIndex:=StationIndex+Mu;--这个也能理解
5 c* D$ _* S+ Y& i# asigma:=Mu*Mu;--这个用来求平衡指数的,也能理解) H) N; \# T: f$ \
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
6 b X0 T. j$ x7 X4 O$ hSmoothIndex:=smoothIndex+sigma;0 A/ e, v! ^; b. }3 N9 \
next;
8 w' c( f. ?5 J; K6 |$ QStationIndex:=stationIndex/Stations;) s9 G9 i* I7 w9 i4 r: p
SmoothIndex:=sqrt(SmoothIndex/Stations);
( E8 s9 f7 c0 |0 L5 j, L J" `- z! b. ]; ^% q4 Q+ Y
Q2:
" U: K2 o4 c7 |- x5 D同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
2 E' e4 X$ V" o7 R如果我想得到GA算法中一个收敛情况,那该如何来得到呢?6 Q, ^ C$ N% p. A# M% c
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
# I: O1 o8 p- V# f有没有可以直接在plant中显示的方法呢? |
|