source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@constraint/eq.m
Last change on this file was 37, checked in by , 14 years ago | |
---|---|
File size: 425 bytes |
Line | |
---|---|
1 | function F = eq(X,Y) |
2 | % Internal class for constraint lists |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: eq.m,v 1.2 2005/05/01 11:52:01 joloef Exp $ |
6 | |
7 | superiorto('sdpvar'); |
8 | superiorto('double'); |
9 | |
10 | if isa(X,'sdpvar') |
11 | if is(X,'binary') |
12 | F=iff(X,Y); |
13 | return; |
14 | end |
15 | end |
16 | if isa(Y,'sdpvar') |
17 | if is(Y,'binary') |
18 | F=iff(Y,X); |
19 | return; |
20 | end |
21 | end |
22 | |
23 | error('Equalities can not be used in double-sided constraints') |
Note: See TracBrowser
for help on using the repository browser.