function [A, b,flg] = ProblemGenerator(n,m,k)
%
% Generate A and b for 1-norm least squares
% The problem is degenerate if k > 0
%
flg = 0;
A   = randn(n,m);
b   = randn(n,1);
x   = randn(m,1);
[junk,Ind] = sort(randn(n,1));
if (k< 0 | k + m >= n)
   flg = 1;
   return;
end
b(Ind(1:k+m)) = A(Ind(1:k+m),:) * x;





