|
|
Q1.
4 s6 x N* J ]& r7 U s# x我的疑问是第四章中,用来做进行适应度评估的Function函数
8 ]7 g0 }9 v0 t其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
/ M) C% b7 q! y2 S( t但是在function函数中,书中给出了
7 a( k( G3 R& Ufor i:=1 to Stations loop& q! j1 U* u& u, a) _9 Z' ^% \5 [
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;4 x1 t% ^( C' V# K8 M0 i
stationIndex:=StationIndex+Mu;--这个也能理解
# A+ M3 f! \- l) M! s: D# E# r. `sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解$ e, A; N8 y9 v( f% |+ p
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
e7 \ A- D; U. `$ R, l& V0 s5 ySmoothIndex:=smoothIndex+sigma; G, U7 m% M% x% K
next;
' [* [( H0 h- R3 t, @5 F8 M# IStationIndex:=stationIndex/Stations;' m% c4 `3 F, ~3 [; u& N9 H
SmoothIndex:=sqrt(SmoothIndex/Stations);$ C$ C5 {6 t; |/ \! @
: m4 Y0 ~8 r6 r' R# [
Q2:
+ c5 N% j. K/ Z# P- X9 `) a: R: x同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。. }4 r# w- e, u. F/ @
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?3 Z6 N$ n4 j" M) h5 a
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
, a# k; C# I9 f' H, O L. u有没有可以直接在plant中显示的方法呢? |
|