|
|
Q1.
& \% Q4 ~0 R$ ]我的疑问是第四章中,用来做进行适应度评估的Function函数" ~# y) B+ C( z* t. e
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
# k B: Q" N7 I2 b但是在function函数中,书中给出了) x9 N5 s: I" Y7 A) a5 P* q5 p
for i:=1 to Stations loop7 v7 |" s F* D5 q' B, S
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
8 ?, C4 G! s$ O# QstationIndex:=StationIndex+Mu;--这个也能理解& a% W( s3 S6 k2 d; a7 f
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
! N8 m8 ^$ G- GStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
1 `6 O" s' c3 x" l* y# nSmoothIndex:=smoothIndex+sigma;5 B1 g3 A9 j; x5 S4 N% F
next;
9 E. M/ A* `+ y- l, N+ UStationIndex:=stationIndex/Stations;( l `3 k- |3 l$ V$ L2 v
SmoothIndex:=sqrt(SmoothIndex/Stations);
7 Q0 {9 Q3 n0 b; `( \# c+ X/ `) K U7 \1 ~/ A0 t
Q2: F2 f; T( Q. M" A3 d% q
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
+ c, g4 P+ C |6 g5 Q, x( M如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
- b9 ?' g3 u0 b3 c: |将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?5 U) r; r# f- p$ b- v
有没有可以直接在plant中显示的方法呢? |
|