www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conlinear/not.m

    function con = not(con)
%NOT Logical NOT of a linear constraint (inverse of a constraint)
%
%  C = NOT(C) is the inverse of the constraint C, i.e., a point X is in
%  NOT(C) if and only if it is outside of C.
%  
%  A linear constraint is given by A*x <= b and so the negative of is 
%  A*x >= b, i.e., -A*x <= -b.
%
%  See also CONLINEAR, CONBOOLEAN, CONBASE/NOT.

%  Copyright 2000-2005 The MathWorks, Inc.

con.A = -con.A;
con.b = -con.b;

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|