|
Q1.
- ~8 G1 E3 S, x( }0 ?3 z. D我的疑问是第四章中,用来做进行适应度评估的Function函数
% A8 e; k. q! {: f2 u: m其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)( \' V( R9 I- Y3 }8 K8 K
但是在function函数中,书中给出了
8 E$ \/ W: L0 k$ n1 W" }/ e% ffor i:=1 to Stations loop
, J& B% J. S0 l6 smu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;8 \2 D6 C0 x9 h- N+ U; j
stationIndex:=StationIndex+Mu;--这个也能理解% n3 V& g9 z* B7 M& q
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解& m% U( k! N; P, N2 v |6 A
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
0 {5 a% V! d2 a8 _* ?SmoothIndex:=smoothIndex+sigma;
" t( _) v3 p, b8 u$ onext;; n$ X3 k! W5 i/ P2 ~
StationIndex:=stationIndex/Stations;
9 u( l, t/ b6 |( r+ E( Y( i/ e4 vSmoothIndex:=sqrt(SmoothIndex/Stations);2 W7 \. I9 G- r) j( \) s
0 U9 a+ j+ L, Y- n
Q2:1 t4 K0 s3 H! Z0 E6 a' B
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
4 c! V2 G5 x. B3 V1 p, F如果我想得到GA算法中一个收敛情况,那该如何来得到呢?; y/ _4 F( b4 B* q
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?2 Y( e+ F3 ~: C
有没有可以直接在plant中显示的方法呢? |
|