|
|
Q1.% N( a# E, P5 O% l
我的疑问是第四章中,用来做进行适应度评估的Function函数! s% `$ ~& T) h+ l
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)7 H1 b7 |8 J7 i) R* C. h
但是在function函数中,书中给出了
4 d! z$ Y& z* v# N. ^3 k4 A9 h0 N$ [for i:=1 to Stations loop
* H6 M$ B3 l1 z& fmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
0 ?4 G s- S6 c+ V' @stationIndex:=StationIndex+Mu;--这个也能理解9 t; n' Q/ K8 k0 T) U; O
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
4 o* W2 l1 U) ^" f" `. EStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
" V- N( V2 Y* X+ A9 f7 u/ A" Z' t8 iSmoothIndex:=smoothIndex+sigma;) e5 [& v: o( i
next;- ?. J. W6 N, l' B4 T3 ^% }
StationIndex:=stationIndex/Stations;
/ I% p" {7 Y, K! e1 J: y8 n! r$ cSmoothIndex:=sqrt(SmoothIndex/Stations);
; _+ l. d. I# R! y- D+ w- R3 e1 P6 A2 G* N
Q2:2 s! M1 f5 r3 F+ x0 e2 n$ f3 h
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
1 [+ t4 |9 J* Z2 l- c+ S) E如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
- }$ d$ F4 J$ H将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理? s0 L X" @6 w0 U$ P1 I5 y* d
有没有可以直接在plant中显示的方法呢? |
|