isBounded

Purpose

Test if a convex set is bounded.

Syntax

ts = S.isBounded
ts = isBounded(S)

Description

Return true if the convex set ../../../../../../fig/mpt/modules/geometry/sets/@ConvexSet/isbounded1.png is bounded and false otherwise. Empty set is considered as bounded.

Input Arguments

S

Any set derived from ConvexSet class, e.g. YSet or Polyhedron.

Class: ConvexSet

Output Arguments

ts

True if the convex set ../../../../../../fig/mpt/modules/geometry/sets/@ConvexSet/isbounded2.png is bounded and false otherwise.

Class: logical

Allowed values:

  • true
  • false

Example(s)

Example 1

Describe positive orthant in 3D using YALMIP
x = sdpvar(3,1);

F = [x>=0];

S = YSet(x,F); 
 Check if the set is unbounded 
 S.isBounded 
ans =

     0

See Also

isemptyset


© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch

© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch