% Example AFIRO from Netlib.
%
% Netlib [1] provide a set of linear programming test problems. These
% problems in MATLAB format can be downloaded from [2]. See the readme
% file in [1] to find the problems that do not have upper bounds on the
% variables (no entry in column BR).
%
% [1] http://www.netlib.org/lp/data
% [2] http://users.clas.ufl.edu/hager/coap/Pages/matlabpage.html
%
% Use ipdriver to solve
%
% min c'x subject to A*x=b, x>=0,
%
A = [1 1 -1 0; 3 1 0 -1];
b = [3 6]';
c = [2 1 0 0]'; 

A = [1 0 2 1 0; 0 1 2 0 1];
b = [3 2]';
c = [-1 -2 -3 0 0]'; 

%load AFIRO;
%load ADLITTLE;
%load 25FV47;
[m, n] = size(A);
Abar = [A eye(m)];
cbar = [c' zeros(1, m)]';
[x,y,s] = ipdriver(cbar,Abar,b);
f = cbar'*x
