|
|
Q1.
3 H3 r u$ t/ s: N; u6 j- F# x# i5 c# _我的疑问是第四章中,用来做进行适应度评估的Function函数
7 @# g2 _3 G7 [+ j0 g! M其中,事先给出的工位指数(StationIndex)=sum(cycleTime-stationTime)/(number of Stations)+ I* P5 ^) O% e4 v
但是在function函数中,书中给出了; d; l/ B) H0 ]
for i:=1 to Stations loop" m7 S9 T( v) e' q1 r
mu:=cycletime-procstation[2,i];- -cycletime减去一个工作站中作业任务总时间;8 R9 [% X5 b+ \- z2 `
stationIndex:=StationIndex+Mu;--这个也能理解+ N5 o+ r* {! @& x( X
sigma:=Mu*Mu;--这个用来求平衡指数的,也能理解; X [) Q: u- N- H7 A
StationIndex:=stationIndex+Mu;--这里就不是很清楚了,为什么又要加上这一句呢?这个不会跟上面那句重复了吗?9 C2 N ^6 I: \+ L
SmoothIndex:=smoothIndex+sigma;8 G; l. n* |+ T' Z, {" L& h! C
next;, m6 C. k6 W2 Z4 a
StationIndex:=stationIndex/Stations;
2 G1 {8 m) G1 T# k2 LSmoothIndex:=sqrt(SmoothIndex/Stations);
1 |! Q2 r3 ^# X; l+ k& t/ s7 s8 q8 x
Q2:* r" A2 p: o- i+ r
同时,本章中由于用的GAoptimization,给出的结果直接就复制到了tablefile中了。。* w0 q+ `. s/ \5 |4 l" T- g
如果我想得到GA算法中一个收敛情况,那该如何来得到呢?! Z0 Q9 p0 c7 X$ }
将每次的子代复制到一个tablefile中,然后导入到Excel中,然后使用Matlab来处理?) m% {) E! S( [9 R! ?. E b1 D
有没有可以直接在plant中显示的方法呢? |
|