|
|
Q1., T' j' L: |8 X7 u) ^* W6 a- t
我的疑问是第四章中,用来做进行适应度评估的Function函数
; u0 e: t/ W: x; t其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)8 Q7 |! R+ Y& w# x; Q" R- |
但是在function函数中,书中给出了- P4 X* c! i* p0 i( T2 D5 m
for i:=1 to Stations loop/ T G% h" h3 e% D9 P
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
( K( g# R* s) ]stationIndex:=StationIndex+Mu;--这个也能理解5 I9 B% P; e1 T' h% c$ ~# D/ {
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解 u' w" X0 \/ m+ O( Y
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?
# E+ X1 b( t7 J- [+ XSmoothIndex:=smoothIndex+sigma;
! Z( W5 i0 w0 H7 \ u5 W+ N7 }% Gnext;$ k* }. _9 F+ H3 J2 M
StationIndex:=stationIndex/Stations;8 A+ E6 w$ H1 m n, D: m
SmoothIndex:=sqrt(SmoothIndex/Stations);: u' U+ {# l; w1 T
% c$ y) n9 P5 a# D1 f# CQ2:& a4 W/ d/ F/ E9 V' \) k1 W8 S& U2 M
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。+ Q$ k) C' k+ ~) e& @
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?
0 k; U- x. @' [5 h X; Y: @将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?$ K3 \2 R* A, d% R1 W
有没有可以直接在plant中显示的方法呢? |
|