![]() |
为什么非线性规划的结果会超出约束条件的范围
>> a=[0 -0.05 -0.05];
b=[-0.95]; lb=[1928.57 0.15 1]; ub=[3857.14 0.4 3]; aeq=[];beq=[]; x0=[3857.14 0.4 3]; >> [x,fval,exitflag]=fmincon(@objective,x0,a,b,aeq,beq,lb,ub,@nline) x = 1.0e+003 * 3.8633 0.0012 0.0091 fval = 2.4830e+003 exitflag = 0 M文件:【function[c1,c2]=nline(x) c1=504.26-0.37*x(1)-(56*(x(2)+x(3)))/(1+x(2)+x(3))+(2412*x(2))/(1+x(2))+3.19*(1+x(2)+x(3)); c2=[]; %没有非线性等式约束 function y=objective(x) y=0.417*x(1)+120.52*x(2)+80.04*x(3)】 |
所有时间均为北京时间。现在的时间是 03:19。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.