% Numerical Mathematics and Computing, Fifth Edition
% Ward Cheney & David Kincaid
% Brooks/Cole Publ. Co.
% (c) 2003
%
% file:  lin_prog2.m
%
% Solving linear programming problem:
% Minimize function objective(x) subject to given constraints.
%
f = [15; 18]
A = [-5 -3
     -3 -6]
b = [-2; -3]
Aeq = []
beq = []
lb = zeros(2,1)
ub = Inf
[x, fval, exitflag, output] = linprog(f, A, b, Aeq, beq, lb)


 
