isFullSpace

Purpose

Test if a polyhedron represents the whole space \mathbb{R}^n.

Syntax

ts = P.isFullSpace
ts = isFullSpace(P)

Description

Return true if the polyhedron ../../../../../../fig/mpt/modules/geometry/sets/@Polyhedron/isfullspace2.png is the whole space or false otherwise.

Input Arguments

P

Polyhedron in any format

Class: Polyhedron

Output Arguments

ts

True if the polyhedron ../../../../../../fig/mpt/modules/geometry/sets/@Polyhedron/isfullspace3.png is the full space and false otherwise.

Class: logical

Allowed values:

  • true
  • false

Example(s)

Example 1

An example of a polyhedron in the full space is when it contains a zero row in its H-representation and its right hand side is nonnegative.
A = [0 0]; b = 1;

P = Polyhedron(A,b); 
The polyhedron P is the whole space.
P.isFullSpace
ans =

     1

See Also

isemptyset, isbounded, isfulldim


© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk