Test if a convex set is empty.
ts = S.isEmptySet
ts = isEmptySet(S)
S |
Any set derived from ConvexSet class, e.g. YSet or Polyhedron. Class: ConvexSet |
ts |
True if the convex set ![]() Class: logical Allowed values:
|
x = sdpvar(2,1);
F = [x'*x<=1];
S = YSet(x,F);Check if the set is not empty
S.isEmptySet
ans = 0
x = sdpvar(2,1);
F = [2*x(1)-3*x(2) <= 2; 2*x(1)-3*x(2) >= 3];
S = YSet(x,F);The set must be empty
S.isEmptySet
ans = 1
◀ | vertcat | horzcat | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch