MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   进化计算 (https://www.labfans.com/bbs/forumdisplay.php?f=46)
-   -   MATLAB遗传算法工具箱 遗传算法终止 (https://www.labfans.com/bbs/showthread.php?t=11181)

qiqitommy 2010-04-05 20:08

MATLAB遗传算法工具箱 遗传算法终止
 
我采用的是MATLAB自带遗传算法工具箱,但运行几代就停止了,没达到优化的目的!请问为什么?目标函数和约束条件如下:
function y = tommy_fitness(x)
y=(0.785*x(1)^2/x(2)-x(4)/x(2))*(x(3)+14.3)*380+(x(6)/x(2)+x(7)/x(2))*(0.785*x(10)^2-0.785*x(9)*x(8)^2)*150+0.785*(x(6)+x(7))*5500*x(9)*x(8)^2/x(2)+4000*(x(3)+14.3)*x(4)/x(2)+0*x(5)+0*x(10);
end


function [c, ceq]=tommy_constraint(x)
c=[0.79*x(9)*x(8)^2-0.16*x(10)^2;595.40-250.57*x(6)*x(10);851.40-6217.00*x(6)*x(8)*x(9);0.20*x(1)^2-0.64*x(4);3.41-3800.00*x(9)*x(8)^2;3.622-1.31*x(1)^2-44*x(1)*x(4)];
ceq=[];


所有时间均为北京时间。现在的时间是 19:40

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.