I'm trying ro solve linear programing problem and I'm sure of result
max 350 x1 +300 x2 +350 x3 +350x4
5 x1 + 7 x3 ≤ 119
5 x2 + 7 x4 ≤ 91
x1 + x2 ≤ 23
x3 + x4 ≤ 15
x≥0
here my command;
A=[5 0 7 0; 0 5 0 7;1 1 0 0 ; 0 0 1 1]
linprog(c,A,b,Aeq,beq,lb,ub)
Optimal solution found.
ans =
23
0
4/7
13
right output is
24/5
91/5
95/7
0
What mistake am I making?
i tried to use the web Matlab but I got the same result.
I asked my collegue and He got the right result which the same input.