|
|
Q1.
; E* k+ m9 F8 `5 W- w我的疑问是第四章中,用来做进行适应度评估的Function函数. i& z1 ~. T( H8 ] W6 M N& N
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)" K: i) D/ n# H; S
但是在function函数中,书中给出了" o+ M9 v) {. B' p6 P$ K
for i:=1 to Stations loop- J' n4 @+ ?. r" F# w6 t' u
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;6 D* }5 x |. n7 Q" A+ B- `! H
stationIndex:=StationIndex+Mu;--这个也能理解; e: M2 J( s8 x, |
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
% ~) @% h5 |& z7 B9 w" Z5 Z7 d6 u# ZStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
# t9 ^! b* H4 c j% P0 {5 lSmoothIndex:=smoothIndex+sigma;7 F% m3 o" }& A, S8 P
next;; o! ^ |1 {! s& V$ y c
StationIndex:=stationIndex/Stations;+ X( [- j& Z) |3 @7 l: u/ ]
SmoothIndex:=sqrt(SmoothIndex/Stations);
* k W: N5 ?: A- _7 v2 R1 m9 i) @7 n# h" q+ }; d- I4 E) R
Q2:$ P! j- q Q/ p
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
9 O' s3 ]3 n) c如果我想得到GA算法中一个收敛情况,那该如何来得到呢?) D2 y- T$ p6 C1 `' Y
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
7 d5 C6 U, ?: j9 ~! R$ k有没有可以直接在plant中显示的方法呢? |
|