function Str = describe(Constr, keyword)
%DESCRIBE  Returns constraint description.

%   Authors: A. Stothert
%   Copyright 1986-2002 The MathWorks, Inc. 
%   $Revision: 1.1.6.2 $ $Date: 2004/12/26 21:51:24 $

if strcmp(Constr.Type, 'upper')
  Str = 'Upper Limit';
else
  Str = 'Lower Limit';
end

if (nargin == 2) && strcmp(keyword, 'detail')
   XUnits = Constr.getDisplayUnits('XUnits');
   Range = unitconv(Constr.xCoords(:), ...
      Constr.xUnits, ...
      XUnits);
   Str = sprintf('%s from %0.3g to %0.3g %s', ...
      Str, min(Range), max(Range), XUnits);
end
