MATLAB 4元一次方程组 最优解 50
a=0.209,b=0.7025,c=0.2199,d=0.1528x1+x2+x3+x4=474;x1,x2,x3,x4都大于0Z=a*x1+b*x2+c*x3+d*x...
a=0.209,b=0.7025,c=0.2199,d=0.1528
x1+x2+x3+x4=474;
x1,x2,x3,x4都大于0
Z=a*x1+b*x2+c*x3+d*x4;
求Z最大时,x1,x2,x3,x4的值 展开
x1+x2+x3+x4=474;
x1,x2,x3,x4都大于0
Z=a*x1+b*x2+c*x3+d*x4;
求Z最大时,x1,x2,x3,x4的值 展开
1个回答
展开全部
>> f=[-0.209 -0.7025 -0.2199 -0.1528];Aeq=ones(1,4);beq=474;lb=zeros(4,1);
[x,fval]=linprog(f,[],[],Aeq,beq,lb,[])
Optimization terminated.
x =
0.0000
474.0000
0.0000
0.0000
fval =
-332.9850
则Z最大值为332.9850,x1=0,x2=474,x3=x4=0
[x,fval]=linprog(f,[],[],Aeq,beq,lb,[])
Optimization terminated.
x =
0.0000
474.0000
0.0000
0.0000
fval =
-332.9850
则Z最大值为332.9850,x1=0,x2=474,x3=x4=0
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询