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

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

Added original make3d

File size: 601 bytes
Line 
1function itssigmonial=issigmonial(F)
2%ISLINEAR Check if all constraints are linear       
3%
4% p = islinear(F)
5%
6% F : SET object
7% p : boolean 0/1
8
9% Author Johan Löfberg
10% $Id: issigmonial.m,v 1.2 2005/02/04 10:10:27 johanl Exp $ 
11
12
13monomtable = yalmip('monomtable');
14xvars = [];
15
16itssigmonial = 1;
17i = 1;
18while itssigmonial & (i<=length(F.clauses))
19    Fi = F.clauses{i};
20    xvars = getvariables(Fi.data);
21    monomtableX = monomtable(xvars,:);
22    YESNO = any(find(any(0>monomtableX,2) | any(monomtableX-fix(monomtableX),2)));   
23    itssigmonial = itssigmonial & full(YESNO);
24    i = i + 1;
25end
Note: See TracBrowser for help on using the repository browser.