|
Q1.
! j' Z8 x7 |% Z, ~6 x我的疑问是第四章中,用来做进行适应度评估的Function函数" ^8 r5 k) J( {5 Q% G4 }# p
其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)
5 O- U- L7 d' C+ S9 t, T但是在function函数中,书中给出了
! J: s+ e1 l$ X# @9 e$ U* ]for i:=1 to Stations loop, i& W9 f2 ~7 T7 F0 p$ G7 i/ j$ s: S K
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;
. D* ? w7 A7 E: M4 s9 KstationIndex:=StationIndex+Mu;--这个也能理解
7 v# B: s1 E5 ]6 c( T" Hsigma:=Mu*Mu;--这个用来求平衡指数的,也能理解
# R# e; \8 ^7 R1 L% tStationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?6 P8 O8 L0 y% S( y( [
SmoothIndex:=smoothIndex+sigma;7 H0 a6 C8 ^" s' h0 c
next;2 A# D/ t/ c* U) p, I
StationIndex:=stationIndex/Stations;$ c6 I1 K/ G) `5 A B- x( P
SmoothIndex:=sqrt(SmoothIndex/Stations);
8 H1 k( ?7 Y8 f2 |) B4 ]# h3 k: _/ O% b- K
Q2:
2 z% S) i4 w2 k; ]同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。
g! r8 U0 B" {7 B: i2 ]6 M如果我想得到GA算法中一个收敛情况,那该如何来得到呢?# x6 |0 V; v0 {8 c j) ?
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?
# K4 D3 F* A# J d有没有可以直接在plant中显示的方法呢? |
|