%
% Numerical Mathematics and Computing, Fifth Edition
% Ward Cheney & David Kincaid
% Brooks/Cole Publ. Co.
% (c) 2003
%
% file:  lin_prog1
%
% Maximize the objective function subject to the given constraints:
%
% obj := 2*x + 3*y;
% consts := {5*x + 3*y <= 15, 3*x + 6*y <=18};
%
  f = - [ 2; 3 ];
  A = [ 5, 3; 3, 6 ];
  b = [ 15; 18 ];
  x = linprog ( f, A, b )

