Rev | Line | |
---|
[37] | 1 | function sys=islinear(x) |
---|
| 2 | %ISLINEAR Check if variable is linear |
---|
| 3 | % |
---|
| 4 | % p = islinear(X) |
---|
| 5 | % |
---|
| 6 | % X : SDPVAR object |
---|
| 7 | % p : boolean 0/1 |
---|
| 8 | |
---|
| 9 | % Author Johan Löfberg |
---|
| 10 | % $Id: islinear.m,v 1.2 2004/07/02 08:17:29 johanl Exp $ |
---|
| 11 | |
---|
| 12 | try |
---|
| 13 | sys = is(x,'linear'); |
---|
| 14 | catch |
---|
| 15 | disp('I have messed up something internally in YALMIP. Sorry...') |
---|
| 16 | disp('Type yalmip(''clear'') and re-define the problem.'); |
---|
| 17 | disp(' ') |
---|
| 18 | disp('This problem typically occurs if you have SDPVAR variables in'); |
---|
| 19 | disp('work-space, and call a function where you are using ') |
---|
| 20 | disp('the command yalmip(''clear''). When control is returned to'); |
---|
| 21 | disp('the work-space, things are messed up...'); |
---|
| 22 | error('Internal problems in YALMIP'); |
---|
| 23 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.