Rev | Line | |
---|
[37] | 1 | function 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.2 2004/07/01 11:17:09 johanl Exp $ |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | switch nargin |
---|
| 21 | case 0 |
---|
| 22 | F = lmi; |
---|
| 23 | case 1 |
---|
| 24 | F = lmi(varargin{1}); |
---|
| 25 | case 2 |
---|
| 26 | F = lmi(varargin{1},varargin{2}); |
---|
| 27 | case 3 |
---|
| 28 | F = lmi(varargin{1},varargin{1},varargin{3}); |
---|
| 29 | otherwise |
---|
| 30 | end |
---|
| 31 | |
---|
| 32 | F = setcutflag(F); |
---|
Note: See
TracBrowser
for help on using the repository browser.