PlotIntegerPoints3d - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


PolyhedralSets[ZPolyhedralSets]

  

PlotIntegerPoints3d

  

plot the integer points of a 3-D polyhedron

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

PlotIntegerPoints3d(zpoly)

Parameters

zpoly

-

ZPolyhedralSet

Description

• 

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.

Examples

> 

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

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

(1)
> 

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

(2)
> 

vars≔x,y,z

vars≔x,y,z

(3)
> 

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

(4)
> 

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

(5)
> 

zp≔ZPolyhedralSet⁡ineqs,x,y

zp≔Relations:−x+y≤1x+2⁢y3≤4x11+2411≤yVariables:x,yParameters:ParameterConstraints:Lattice:ZSpan1001,,,00

(6)
> 

PlotIntegerPoints3d⁡zp

Error, (in PolyhedralSets:-ZPolyhedralSets:-PlotIntegerPoints3d) cannot handle this ZPolyhedralSet: its dimension is 2 instead of 3

Compatibility

• 

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