用MATLAB已知两个方程及一个限制条件求最小值
已知4199x+4599y+4605z=4062x+y+z=11>x>y>z>0求y的最小值...
已知4199x+4599y+4605z=4062
x+y+z=1
1>x>y>z>0
求y的最小值 展开
x+y+z=1
1>x>y>z>0
求y的最小值 展开
展开全部
限制条件不够吧,没有最优解,
f=[0 1 0];
A=[-1 1 0;0 -1 1];
B=[0;0];
Aeq=[4199 4599 4605;1 1 1];
Beq=[4062 ;1];
lb=[0 0 0 ];
ub=[1 1 1];
[x,fval,flag]=linprog(f,A,B,Aeq,Beq,lb,ub)
Exiting: One or more of the residuals, duality gap, or total relative error
has grown 100000 times greater than its minimum value so far:
the primal appears to be infeasible (and the dual unbounded).
(The dual residual < TolFun=1.00e-08.)
x =
1.6692
0.3363
0.0000
fval =
0.3363
flag =
-2
flag=-2
代表
No feasible point was found.
没有可行的点被发现
f=[0 1 0];
A=[-1 1 0;0 -1 1];
B=[0;0];
Aeq=[4199 4599 4605;1 1 1];
Beq=[4062 ;1];
lb=[0 0 0 ];
ub=[1 1 1];
[x,fval,flag]=linprog(f,A,B,Aeq,Beq,lb,ub)
Exiting: One or more of the residuals, duality gap, or total relative error
has grown 100000 times greater than its minimum value so far:
the primal appears to be infeasible (and the dual unbounded).
(The dual residual < TolFun=1.00e-08.)
x =
1.6692
0.3363
0.0000
fval =
0.3363
flag =
-2
flag=-2
代表
No feasible point was found.
没有可行的点被发现
追问
谢谢了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询