source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ncvar/cut.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 708 bytes
Line 
1function F = cut(varargin)
2%CUT Defines a cut constraint
3%   
4% The syntax for CUT is exactly the same as the
5% syntax for SET. In fact, the result from CUT is
6% a SET object.
7%
8% The difference between a ordinary constraint and
9% a cut constraint is that the CUT will not be used
10% in the solution of the upper bound problem in a
11% global solver, but only in the relxation for the
12% lower problem.
13%
14%    See also   SET
15
16% Author Johan Löfberg
17% $Id: cut.m,v 1.1 2006/08/10 18:00:19 joloef Exp $
18
19
20switch nargin
21case 0
22    F = lmi;
23case 1
24    F = lmi(varargin{1});
25case 2
26    F = lmi(varargin{1},varargin{2});
27case 3
28    F = lmi(varargin{1},varargin{1},varargin{3});
29otherwise
30end
31   
32F = setcutflag(F);
Note: See TracBrowser for help on using the repository browser.