%Q4 problem11 fateme goli ; zahra mohamadi sabet
clc
clear
f=[1;7;1]
A=[-1 -1 1]
b=[-10]
Aeq=[1 1 -1; 2 -1 2 ]
beq=[1;1]
lb=[0;0;0]
[x,fval,exitflag]=linprog(f, A, b,Aeq,beq,lb)
f = 1 7 1 A = -1 -1 1 b = -10 Aeq = 1 1 -1 2 -1 2 beq = 1 1 lb = 0 0 0 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 = 5.6765 21.331 17.833 fval = 172.82 exitflag = -2