注册 登录
编程论坛 Matlab

求助:该程序有什么问题,该怎样改?

logisticself 发布于 2007-04-11 15:55, 639 次点击

f=[10 8 9 11 13 12];
>> aeq=[1 1 1 0 0 0;0 0 0 1 1 1;1 0 0 1 0 0;0 1 0 0 1 0;0 0 1 0 0 1];
>> beq=[10;25;10;20;15];
>> lb=[0;0;0;0;0;0];
>> [x,fval]=linprog(f,[],[],aeq,beq,lb)
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible (and the dual unbounded).
(The dual residual < TolFun=1.00e-008.)

x =

0.0001
19.9999
0.0000
9.9999
0.0001
15.0000

0 回复
1