|
|
Q1.6 t& N3 ?4 R+ g: g4 y, ~
我的疑问是第四章中,用来做进行适应度评估的Function函数
" }/ U, j$ m# A其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
3 o4 Q B1 F4 P) l4 S L但是在function函数中,书中给出了& ~! V6 w% x- P
for i:=1 to Stations loop0 a9 o& D0 r9 x9 i
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
7 x# D0 O6 ]+ t9 m3 SstationIndex:=StationIndex+Mu;--这个也能理解
1 n& | R9 z" B. ~7 Z F8 M) Jsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解+ ? g7 g3 G4 t% w' ^' q: H
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
1 v+ {9 U( K) uSmoothIndex:=smoothIndex+sigma;+ _3 s) i1 [- q. S+ `2 w
next;
4 c( L# b* s3 \( v* ~8 C4 dStationIndex:=stationIndex/Stations;
. N3 G9 Q* U/ M+ }SmoothIndex:=sqrt(SmoothIndex/Stations);5 ?/ E& Y( h8 ~" l9 w0 s6 { z
' a- f! m f/ bQ2:
* c4 o- M" ]* B- G: Y6 j% t% @同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
6 N3 |6 j* B/ N. \( r* @' ~4 `. z如果我想得到GA算法中一个收敛情况,那该如何来得到呢?" K+ N+ m# y6 N- Z& F$ i: P
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?9 N5 U, |% {, c# A( W1 h5 ^- ?
有没有可以直接在plant中显示的方法呢? |
|