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


