|
|
Q1.
+ o- T, P" u4 [我的疑问是第四章中,用来做进行适应度评估的Function函数 N" o) Q9 s6 @+ `0 R
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)$ w8 j! S# q4 D* w8 k. O( t9 m( H
但是在function函数中,书中给出了
9 ?2 v9 R' G$ ]. V" H( M7 N# X4 sfor i:=1 to Stations loop
+ t9 m9 m* F" g! p: a3 i. Gmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
2 A" I' y$ F' R" F1 j. ZstationIndex:=StationIndex+Mu;--这个也能理解! M; n: G% \/ o# u
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解0 ? f* x+ e' s5 I* ]4 n2 X
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
) o' K6 l% p+ c$ sSmoothIndex:=smoothIndex+sigma;
! \$ s6 C- l& Q; R/ f( ~* fnext;
+ S) X K' \0 a# T: _2 }$ rStationIndex:=stationIndex/Stations;; ~6 |, p3 Z3 ^+ t
SmoothIndex:=sqrt(SmoothIndex/Stations);( p7 X& @) v/ ]; _' g
7 D' c, g+ V# X$ YQ2:
- F5 F$ g( z1 q4 O8 ?% l3 c同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。+ Z: K2 A( R5 A
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
9 l8 \9 Q& P% u" R9 n, Z" g- H将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?$ B+ C* E/ n4 n3 E7 U" w! W
有没有可以直接在plant中显示的方法呢? |
|