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

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

Added original make3d

File size: 425 bytes
Line 
1function 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
7superiorto('sdpvar');
8superiorto('double');
9
10if isa(X,'sdpvar')
11    if is(X,'binary')
12        F=iff(X,Y);
13        return;
14    end
15end
16if isa(Y,'sdpvar')
17    if is(Y,'binary')
18        F=iff(Y,X);
19        return;
20    end
21end
22
23error('Equalities can not be used in double-sided constraints')
Note: See TracBrowser for help on using the repository browser.