% �üŒ`Œv‰æ–@

% minimize f'x
% subject to Ax <= b
%            Cx  = d
%            xmin <= x <= xmax
%
% linprog(f, A, b, C, d, xmin, xmax)

% minimize    -x_1    -x_2
% subject to 3 x_1 +   x_2 <= 15
%            2 x_1 + 3 x_2 <= 24
%              x_1 >= 0, x_2 >= 0

f = [ -1; -1 ];
A = [ 3,  1;
      2,  3 ];
b = [ 15; 24 ];
xmin = [ 0; 0 ];
x = linprog(f, A, b, [], [], xmin, []);
x
