Line | |
---|
1 | function F = set(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 | switch nargin |
---|
17 | case 0 |
---|
18 | F = lmi; |
---|
19 | case 1 |
---|
20 | F = lmi(varargin{1}); |
---|
21 | case 2 |
---|
22 | F = lmi(varargin{1},varargin{2}); |
---|
23 | case 3 |
---|
24 | F = lmi(varargin{1},varargin{1},varargin{3}); |
---|
25 | otherwise |
---|
26 | end |
---|
27 | |
---|
28 | F = setcutflag(F); |
---|
Note: See
TracBrowser
for help on using the repository browser.