function f=myfun(X) f=0.34*X(1)+0.004*X(2)+0.14*X(3)+0.24*X(
来源:学生作业帮 编辑:神马作文网作业帮 分类:数学作业 时间:2024/11/12 09:49:01
function f=myfun(X) f=0.34*X(1)+0.004*X(2)+0.14*X(3)+0.24*X(4)+0.08*X(5)+0.03*X(6)+6.05*X(7); goal=
function f=myfun(X)
f=0.34*X(1)+0.004*X(2)+0.14*X(3)+0.24*X(4)+0.08*X(5)+0.03*X(6)+6.05*X(7);
goal=[1,1,1];
weight=[1,1,1];
X0=[190;150;120;60;800;1100;4];
b=[0;0;0;0;0;0;0;400;-340];
Aeq=[0.3175;1;0.4762;0.3448;0.3816;0.3704;0];
beq=[990];
lb=[170;135;60;0;700;1000;2];
ub=[250;190;160;60;1000;1300;12];
A=[0.3 -1 0.3 0.3 0 0 0
-0.45 1 -0.45 -0.45 0 0 0
0 0 0 0 -0.65 0.35 0
0 0 0 0 0.58 -0.42 0
-14.6 29.77 -14.6 -14.6 0 0 0
0.01 0 0 0 0 0 -1
-0.02 0 0 0 0 0 1
1 0 1 1 0 0 0
-1 0 -1 -1 0 0 0];
[X,fval,attainfactor,exitflag]=fgoalattain(@myfun,X0,goal,weight,A,b,Aeq,beq,lb,ub)
运行时出现Maximum recursion limit of 500 reached.Use set(0,'RecursionLimit',N)
to change the limit.Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.
Error in ==> optimget at 166
set(0,'RecursionLimit',N)将500 递归限制改大后无法运行
function f=myfun(X)
f=0.34*X(1)+0.004*X(2)+0.14*X(3)+0.24*X(4)+0.08*X(5)+0.03*X(6)+6.05*X(7);
goal=[1,1,1];
weight=[1,1,1];
X0=[190;150;120;60;800;1100;4];
b=[0;0;0;0;0;0;0;400;-340];
Aeq=[0.3175;1;0.4762;0.3448;0.3816;0.3704;0];
beq=[990];
lb=[170;135;60;0;700;1000;2];
ub=[250;190;160;60;1000;1300;12];
A=[0.3 -1 0.3 0.3 0 0 0
-0.45 1 -0.45 -0.45 0 0 0
0 0 0 0 -0.65 0.35 0
0 0 0 0 0.58 -0.42 0
-14.6 29.77 -14.6 -14.6 0 0 0
0.01 0 0 0 0 0 -1
-0.02 0 0 0 0 0 1
1 0 1 1 0 0 0
-1 0 -1 -1 0 0 0];
[X,fval,attainfactor,exitflag]=fgoalattain(@myfun,X0,goal,weight,A,b,Aeq,beq,lb,ub)
运行时出现Maximum recursion limit of 500 reached.Use set(0,'RecursionLimit',N)
to change the limit.Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.
Error in ==> optimget at 166
set(0,'RecursionLimit',N)将500 递归限制改大后无法运行
f(1)=-p*x(1)-0.3*x(2)-0.3*x(3); f(2)=-0.34*x(4)-0.34*x(5)-0.34*x(6); f(3)=0.5*f(1)
matlab中,怎样用function定义带参数的方程? 比如 function y=myfun(x) y=x(1)+x
find the inverse of the function:f(x)= (4x-1)/(2x+3)
F(X)满足F(x)+2f(x分之1)=3X,求f(x)
已知f(x)满足2f(x)+f(1/x)=3x,求f(x)
已知f(x)满足2f(x)+f(1/x)=3x,求f(x)?
已知f(x)满足2f(x)+f(-x)=-3x+1,求f(x)
matlab中如何用function建立一个y=f(x)函数?直接function y=f(x) y=x.^2+3*x+
the function f given by f(x)=9*x^(2/3)+3x-6 has a relative m
英语翻译Consider the cubic function:f(x)=2x^3+6x^2-4.5x-13.5.Sta
f(x)=x(x-1)(x-2)(x-3)(x-4) f'(1)=?
已知f(x+1)+2f(-x)=3x²+x,求f(x)
f(x-1)=x^2-2x+3(x