%% Create an Unbounded Portfolio for a Portfolio Object
% Create an unbounded portfolio set.

p = Portfolio('AInequality', [1 -1; 1 1 ], 'bInequality', 0);
[lb, ub, isbounded] = estimateBounds(p)

% The estimateBounds function returns (possibly infinite) bounds and sets the isbounded flag to false. The result shows which assets are unbounded so that you can apply bound constraints as necessary.
% Copyright 2015 The MathWorks, Inc.