%Maximizar 8.1*x1 +10.8*x2
%s.a: 0.8*x1+0.44*x2<=24000
%     0.05*x1+0.1*x2<=2000
%     0.1*x1+0.36*x2<=6000
%     x1>=0       x2>=0
%uso: >>ex_lp1
f=-[8.1 10.8]
A=[ 0.8 0.44; 0.05 0.10 ;0.10 0.36]
b=[24000; 2000; 6000]
lb=[0 0 0]

[x, fv]=linprog(f',A,b,[],[],lb);

fval=-fv
x