|
|
Q1.
4 b" G( a. x! z/ l( s8 a3 s我的疑问是第四章中,用来做进行适应度评估的Function函数7 p: Q# {0 ]3 P! t: e0 H# ? M' W
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)" y- j0 X- _1 I* }7 w" o# Q- b( \3 ^
但是在function函数中,书中给出了$ r7 D7 Y" P# T- X8 x
for i:=1 to Stations loop
$ E7 X3 q8 C8 M0 mmu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
9 u; P( q A9 k7 w* d. b, a* ostationIndex:=StationIndex+Mu;--这个也能理解
, J9 w3 c7 I2 K) Y) _* @ ssigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
: `: m( [- c6 SStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
# V p* q6 M' o3 I7 Q8 q7 r6 NSmoothIndex:=smoothIndex+sigma;# v1 i, ~! S" i# G$ p
next;% |; i4 }& A$ T3 o6 |+ o
StationIndex:=stationIndex/Stations;
1 a( v" v$ d d7 F% x- d7 wSmoothIndex:=sqrt(SmoothIndex/Stations);
/ ^" K% Z+ @3 J7 N7 L Z% ^* h( h+ T/ N8 [& l
Q2:$ _$ |7 f1 M; ]$ S1 l( B
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。, }& n: }" y7 S! O c7 P
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?2 M d( m: e0 \8 H4 u
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
( t( F& e9 w& n0 m8 }有没有可以直接在plant中显示的方法呢? |
|