|
|
Q1.9 K" [' U( G- `: U) }9 l# I
我的疑问是第四章中,用来做进行适应度评估的Function函数
1 H, T4 w0 N, a, I' j- P. Y其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)* o# I3 V' g8 L8 y0 {' ~
但是在function函数中,书中给出了
: X( T H |& M/ @( R3 f9 rfor i:=1 to Stations loop
5 z2 f: W2 t$ z6 {# R- A: Y* ]mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;2 E; x% X" G" t. N L- z
stationIndex:=StationIndex+Mu;--这个也能理解
~9 l8 Q; l" v$ S& lsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解; ^% }1 r0 w( e
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
$ v$ q2 h: w% t2 hSmoothIndex:=smoothIndex+sigma;
$ J6 ]9 w) ~- b! d; Z# _next;
" ~5 Z+ K# m* R) Q& Z- j3 QStationIndex:=stationIndex/Stations;' u) C6 V/ y! G" t7 @' b# X: }
SmoothIndex:=sqrt(SmoothIndex/Stations);
' W& s# h/ u# \3 f, m& O: @
( \) L9 @6 d4 tQ2:
. S8 @$ g0 c. c' C5 ^同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
3 B8 q: r V# @' K, Z+ p- U如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
) n/ `( m. }) k# d9 c4 D! E y将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
# B+ L6 t7 X9 U有没有可以直接在plant中显示的方法呢? |
|