|
|
Q1.
7 @: N( r5 V( {* X9 P8 m我的疑问是第四章中,用来做进行适应度评估的Function函数
5 F" N3 l3 f4 n" @2 }: V其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
( W: ]2 E- ~. E& D: Y但是在function函数中,书中给出了
( N4 f- l {$ c7 f4 [) Q& X+ Vfor i:=1 to Stations loop
! }+ j# A% \) |5 w W3 |mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;4 q% D) J7 J, w9 ~
stationIndex:=StationIndex+Mu;--这个也能理解
4 r* z, f( f* g/ e: b" `8 h6 Fsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解7 E& S6 n; O K1 q* v
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
+ |3 ] H6 y. A' ?" P5 w- BSmoothIndex:=smoothIndex+sigma;
* ]2 M* F, e7 m+ B. _next;
4 n& Y+ j1 a( s. b0 eStationIndex:=stationIndex/Stations;
. X7 S5 G" _: m9 RSmoothIndex:=sqrt(SmoothIndex/Stations);/ y, x9 Y% d% `2 N
0 l, L2 ]3 I3 ^
Q2:+ [8 A8 i6 y4 e4 b" q6 E
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。/ I# C/ E3 F0 F; g* o* m6 G
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
3 s! O, y+ J' r6 v! ?将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
4 D8 j1 i! q2 L& d& D有没有可以直接在plant中显示的方法呢? |
|