|
Q1.
1 O! ^, y, D& `我的疑问是第四章中,用来做进行适应度评估的Function函数
w$ ?& F' n) T其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
! [" v$ s0 l6 q/ \' {" E0 p% a2 r但是在function函数中,书中给出了
, l$ |' h ^. B1 @0 z. Pfor i:=1 to Stations loop
5 k" Q$ Z* c3 \! T. \mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;8 J6 \1 f! d/ \- `8 D# q
stationIndex:=StationIndex+Mu;--这个也能理解
( o" P% M+ w7 O/ _sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解4 q) R6 T% {; a9 _/ d
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?7 L9 i2 q Y+ d9 ~
SmoothIndex:=smoothIndex+sigma;5 y% P7 t3 r) W! F6 j
next;
6 Z5 W+ v! J' ZStationIndex:=stationIndex/Stations;$ w8 h7 z# [4 l2 h u
SmoothIndex:=sqrt(SmoothIndex/Stations);) N& i; {: h# M( a8 g# n
6 e8 r, L/ r6 r1 p) s/ @' VQ2:1 k- p0 K5 J y, |% f
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。8 m5 ?5 B8 |0 N4 S( M4 Z. n& h
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
9 b) S3 S7 r2 r1 G# i将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?+ b, g$ S2 `, v& W' ] G
有没有可以直接在plant中显示的方法呢? |
|