|
Q1.
7 X9 n# b: ^& `我的疑问是第四章中,用来做进行适应度评估的Function函数8 S4 a) t1 }! _2 u
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
7 J3 I, o/ O7 C O/ ^& b4 b1 m8 ~但是在function函数中,书中给出了 S; x: \* j1 {
for i:=1 to Stations loop7 O; I5 ^2 `6 _# x6 ~1 A* n3 Q
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;: Q: N, ]' j/ w0 F3 j
stationIndex:=StationIndex+Mu;--这个也能理解 K2 q" O: i$ i! Z9 E
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解2 M% p y9 D$ c: l- [- r% M
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?, Y# Q( \' c; J9 r
SmoothIndex:=smoothIndex+sigma;+ y- l# L% z# G+ o4 t
next;) m! v- ?) D" T
StationIndex:=stationIndex/Stations;
! x5 x, L" Y# J' o, w* o6 @. wSmoothIndex:=sqrt(SmoothIndex/Stations);- y0 b' O( l7 Q; E6 B4 P6 h2 c
! o) x" g3 j9 l
Q2:; c$ N% I+ R4 D# K. t
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
/ T; H; ^! h3 b0 m2 [ e2 ~: s如果我想得到GA算法中一个收敛情况,那该如何来得到呢?8 o) b9 G1 Y1 v
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
1 A7 T+ Y, _' N有没有可以直接在plant中显示的方法呢? |
|