遗传算法---请帮看看此现象是否为局部最小值?。
Show older comments
自变量基本不变,目标函数值不变,是否为局部最优啊,我该怎么办呢?
lb=[10];
ub=[800];
options=gaoptimset('display','iter','crossoverfraction',0.95);
[x,fval,exitflag,output,population,scores]=ga(@myfun24h,1,[],[],[],[],lb,ub,[],options)
[color=rgb(51, 102, 153) !important]复制代码
x =
440.2777
fval =
12.5303
exitflag =
1
output =
problemtype: 'boundconstraints'
rngstate: [1x1 struct]
generations: 51
funccount: 1040
message: [1x86 char]
maxconstraint: 0
population =
440.2780
440.2781
440.2782
440.2782
440.2782
440.2782
440.2782
440.2781
440.2780
440.2782
440.2782
440.2782
440.2781
440.2782
440.2782
440.2781
440.2781
440.2782
440.2782
440.2777
scores =
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
12.5303
Answers (0)
Categories
Find more on 最近邻 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!