PolyhedralSets[ZPolyhedralSets]
PlotIntegerPoints3d
plot the integer points of a 3-D polyhedron
Calling Sequence
Parameters
Description
Examples
Compatibility
PlotIntegerPoints3d(zpoly)
zpoly
-
ZPolyhedralSet
PlotIntegerPoints3d(zpoly) plots the integer points of zpoly.
This requires zpoly to be non-parametric, three-dimensional, and bounded. If one of these assumptions does not hold, then an error is raised.
with⁡PolyhedralSets:
with⁡ZPolyhedralSets:
Plot a three-dimensional Z-Polyhedral set.
ineqs≔0≤−16+2⁢y+z,0≤−72+4⁢x+4⁢y+3⁢z,0≤2⁢y−z,0≤−24+4⁢x+4⁢y−3⁢z,0≤−4⁢x+4⁢y+3⁢z,0≤48−4⁢x+4⁢y−3⁢z,0≤48−4⁢x−4⁢y+3⁢z,0≤8−2⁢y+z,0≤−24+4⁢x−4⁢y+3⁢z,0≤24−2⁢y−z,0≤24+4⁢x−4⁢y−3⁢z,0≤96−4⁢x−4⁢y−3⁢z
ps≔PolyhedralSet⁡ineqs;PolyhedralSets:-Plot⁡ps
ps≔{Coordinates:x,y,zRelations:−y−z2≤−8,−y+z2≤0,y−z2≤4,y+z2≤12,−x−y−3⁢z4≤−18,−x−y+3⁢z4≤−6,−x+y−3⁢z4≤−6,−x+y+3⁢z4≤6,x−y−3⁢z4≤0,x−y+3⁢z4≤12, and 2 more constraints
L≔Lattice⁡Matrix⁡1,0,2,0,−1,1,0,0,2,Vector⁡0,0,1
L≔Lattice⁡1020−11002,001
vars≔x,y,z
zp≔ZPolyhedralSet⁡ineqs,vars,:-lattice=L
zp≔Relations:0≤2⁢y−z0≤−16+2⁢y+z0≤8−2⁢y+z0≤24−2⁢y−z0≤−4⁢x+4⁢y+3⁢z0≤−72+4⁢x+4⁢y+3⁢z0≤−24+4⁢x−4⁢y+3⁢z0≤−24+4⁢x+4⁢y−3⁢z0≤24+4⁢x−4⁢y−3⁢z0≤48−4⁢x−4⁢y+3⁢z0≤48−4⁢x+4⁢y−3⁢z0≤96−4⁢x−4⁢y−3⁢zVariables:x,y,zParameters:ParameterConstraints:Lattice:ZSpan1020−11002,,,001
PlotIntegerPoints3d⁡zp
Trying to plot a Z-Polyhedral set which is not three-dimensional.
ineqs≔x+2⁢y3≤4,−x+y≤1,111⁢x+2411≤y
ineqs≔x+2⁢y3≤4,−x+y≤1,x11+2411≤y
zp≔ZPolyhedralSet⁡ineqs,x,y
Error, (in PolyhedralSets:-ZPolyhedralSets:-PlotIntegerPoints3d) cannot handle this ZPolyhedralSet: its dimension is 2 instead of 3
The PolyhedralSets:-ZPolyhedralSets:-PlotIntegerPoints3d command was introduced in Maple 2023.
For more information on Maple 2023 changes, see Updates in Maple 2023.
See Also
ZPolyhedralSets:-IsEmpty
ZPolyhedralSets:-IsIntegerPointOf
ZPolyhedralSets:-SamplePoint
ZPolyhedralSets:-IntegerPointDecomposition
ZPolyhedralSets:-IsContained
ZPolyhedralSets:-ZPolyhedralSet
ZPolyhedralSets
PolyhedralSets
Download Help Document