求助:优化中的问题
请问以下程序解出的x为什么是小数,而答案是x=[0 0 15 18 0 0 0 12 1]
f=[5 9 2 3 4 7 6 2 8];
>> aeq=[1 1 1 0 0 0 0 0 0; 0 0 0 1 1 1 0 0 0; 0 0 0 0 0 0 1 1 1;1 0 0 1 0 0 1 0 0;0 1 0 0 1 0 0 1 0; 0 0 1 0 0 1 0 0 1];
>> beq=[15;18;17;18;12;16];
>> lb=[0;0;0;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.0097
0.0127
14.9776
17.6603
0.0065
0.3331
0.3300
15.9808
0.6893
fval =
124.9127