|
|
Q1.
* K+ L# s4 ~: S& C. o* h6 x我的疑问是第四章中,用来做进行适应度评估的Function函数
1 _8 y6 b( y6 B% N4 i其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
! C! d; _5 V1 E. {" A/ X7 W& f但是在function函数中,书中给出了
! R% j+ S4 L3 j) ofor i:=1 to Stations loop. |: Q2 S) k$ n% H3 j# l
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;0 b L9 S3 K9 P; _0 A: W
stationIndex:=StationIndex+Mu;--这个也能理解
- t8 e6 _1 u0 s3 Q; F6 S6 H( msigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
9 l* e& I5 V7 j. I2 z' nStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
. G* k' N7 A( B! pSmoothIndex:=smoothIndex+sigma;, O5 L# i& U# s% U3 N0 H
next;
! g' w& C+ _% m( cStationIndex:=stationIndex/Stations;* Z9 _- A! d5 B! x" F
SmoothIndex:=sqrt(SmoothIndex/Stations);
, H3 t3 m( |9 j+ e2 o" M
1 H! m/ D( R7 ]6 ~& BQ2:
1 M: g: ^7 Z4 Y- H0 |: ?3 |同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。# \, a5 x4 R6 p6 y9 w
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?2 d2 p. F3 w# o c& B! V7 ]$ K) q& {
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?- o( c5 H6 N) {1 \) D% L f, M
有没有可以直接在plant中显示的方法呢? |
|