isEmptySet

Purpose

Test if a polyhedron has a non-empty interior.

Syntax

tf = P.isEmptySet
tf = isEmptySet(P)

Description

Return true if the polyhedron ../../../../../../fig/mpt/modules/geometry/sets/@Polyhedron/isemptyset1.png is empty or false otherwise. A polyhedron is considered as empty if the diameter of the inscribed ball is less than region_tol or if there exist no feasible point inside the set.

Input Arguments

P

Polyhedron in any format

Class: Polyhedron

Output Arguments

tf

True if the polyhedron ../../../../../../fig/mpt/modules/geometry/sets/@Polyhedron/isemptyset2.png is empty and false otherwise.

Class: logical

Allowed values:

  • true
  • false

Example(s)

Example 1

Non-empty polyhedron
P = ExamplePoly.randHrep;

 P.isEmptySet 
ans =

     0

Empty polyhedron is created at the time of construction.
Q = Polyhedron
Empty polyhedron in R^0
 Q.isEmptySet 
ans =

     1

Array of 3 empty polyhedra
 R(1,3) = Polyhedron 
Array of 3 polyhedra.
 R.isEmptySet 
ans =

     1     1     1

See Also

isemptyset, isbounded, isfulldim


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