PolyhedralSets
PolyhedralSet
construct polyhedral sets
Calling Sequence
Parameters
Description
Examples
Compatibility
PolyhedralSet(system)
PolyhedralSet(system, coordinates)
PolyhedralSet(vertices, coordinates)
PolyhedralSet(vertices, rays, coordinates)
PolyhedralSet(polyset)
system
-
list or set of linear equalities and non-strict inequalities with rational coefficients
vertices
list of lists or set of lists of rationals
rays
(optional) list/set of list of rationals
coordinates
(optional) list of names, coordinates of the set's ambient space
polyset
polyhedral set to copy
A polyhedral set can be created via its H-Representation by calling PolyhedralSet(system). If the set's coordinates are not supplied, they default to the indeterminates in system.
Alternatively, a polyhedral set can be created via its V-Representation by calling PolyhedralSet(vertices, rays, coordinates), supplying the set's vertices and extreme rays. The rays are an optional argument, required to represent unbounded sets. If coordinates is not specified, default coordinates names are generated for the set.
The set is reduced to its minimal representation by removing redundant relations, vertices that can be expressed of convex combinations of the other vertices and rays that are conical combinations of the other rays. The result is stored in a canonical form and will therefore likely have a different form than that used to create the set.
Polyhedral sets can be copied by calling PolyhedralSet
with⁡PolyhedralSets:
Create a set via a list of inequalities
ps≔PolyhedralSet⁡0≤x,0≤y
ps≔{Coordinates:x,yRelations:−y≤0,−x≤0
Relations⁡ps
−y≤0,−x≤0
Coordinates⁡ps
x,y
Specifying the coordinates explicitly controls their order and allows for the inclusion of additional coordinates not appearing in system
ps≔PolyhedralSet⁡0≤x,0≤y,x,y,z
ps≔{Coordinates:x,y,zRelations:−y≤0,−x≤0
x,y,z
Create a polyhedral set using its vertices and rays
ps≔PolyhedralSet⁡5,−5,−5,−5,−1,−1,1,−1
ps≔{Coordinates:x1,x2Relations:x2≤−5,−x1+x2≤0,x1+x2≤0
Plot⁡ps
The PolyhedralSets[PolyhedralSet] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
PolyhedralSets[VerticesAndRays]
PolyhedralSets[Display]
PolyhedralSets[Relations]
PolyhedralSets[Coordinates]
Download Help Document