ge

Purpose

Test if a union of polyhedra contains another union.

Syntax

U1 >= U2

Description

Check if the union of polyhedra U1 is a non-strict superset of another union U2. The result it the logical statement if U1 >= U2 and false otherwise.

Input Arguments

U1

Union of polyhedra in the same dimension.

Class: PolyUnion

U2

Union of polyhedra in the same dimension.

Class: PolyUnion

Output Arguments

tf

True if U1 >= U2 and false otherwise.

Class: logical

Allowed values:

  • true
  • false

Example(s)

Example 1

Consider an union of a rectangle and a triangle.
 rectangle = Polyhedron('lb',[0;0],'ub',[2;1]); 

 triangle = Polyhedron([3,0;4,4; 6,2]); 

 U1 = PolyUnion([rectangle, triangle]); 

 U1.plot 

../../../../../../fig/mpt/modules/geometry/unions/@PolyUnion/ge_img_1.png

The union U1 is located in the positive orthant, so we check if this is true.
 U2 = PolyUnion(Polyhedron('lb',[0;0])); 

 U2 >= U1 
ans =

     1

See Also

le


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