IntegerHull - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


PolyhedralSets

  

IntegerHull

  

integer hull of a polyhedral set

 

Calling Sequence

Parameters

Returns

Description

Examples

References

Compatibility

Calling Sequence

IntegerHull(polyset, output=value)

Parameters

polyset

-

PolyhedralSet

value

-

(optional) either verticesandrays (default) or polyhedralset

Returns

• 

The available return types are:

– 

The output=verticesandrays option (default) returns a list of two elements which are the vertices and rays of the integer hull of polyset.

– 

The output=polyhedralset option returns a PolyhedralSet object representing the integer hull of polyset.

Description

• 

The integer hull of a convex polyhedral set is the smallest polyhedral set that contains all the integer points in the input set.

• 

This command computes the integer hull of the convex polyhedral set polyset. polyset can be of any dimension greater or equal to 2, bounded or unbounded. It returns either a list or a PolyhedralSet.

Examples

withPolyhedralSets:

ineqs2x+5y64,207x+5y,3x6y7

ineqs2x+5y64,207x+5y,3x6y−7

(1)

polyPolyhedralSetineqs,x,y

poly{Coordinates:x,yRelations:x5y7207,x2y73,x+5y232

(2)

By default the integer hull is returned in the form of vertices and rays.

IntegerHullpoly

12,8,−8,16,−7,14,−5,11,0,4,1,3,3,3,11,7,

(3)

You can also choose to get a PolyhedralSet instead.

IntegerHullpoly,output=polyhedralset

{Coordinates:x,yRelations:y−3,xy−4,x5y7207,x2y373,xy20,x2y−3,xy4,x+5y232

(4)

The PolyhedralSet can be unbounded.

insetPolyhedralSet75,0,134,0,53,1,52,1,0,1,x,y:

IsBoundedinset

false

(5)

IntegerHullinset

−1,0,3,0,0,−1

(6)

A 3D example.

vertices4,8,6,1,103,14,62,8,103,142,223,4

vertices4,8,6,−1,103,14,−3,8,103,7,223,−4

(7)

varsx1,x2,x3

varsx1,x2,x3

(8)

poly3dPolyhedralSetvertices,,vars:

IntegerHullpoly3d

−2,3,4,−2,4,3,−2,6,−2,−2,8,−2,−1,−2,12,−1,5,−3,0,−3,10,0,−3,11,0,−2,12,0,−1,12,0,0,11,1,−4,9,1,−2,10,2,1,−3,3,−5,5,3,−2,−2,3,−1,6,4,−5,1,4,−3,−3,4,8,6,5,−6,0,5,−4,1,5,1,1,6,−6,−3,6,−6,−2,6,−5,−3,6,−3,−1,

(9)

References

  

Marc Moreno Maza, and Linxiao Wang. On the Pseudo-Periodicity of the Integer Hull of Parametric Convex Polygons. International Workshop on Computer Algebra in Scientific Computing 2021. Springer LNCS 12865, 2021.

  

Marc Moreno Maza and Linxiao Wang. Computing the Integer Hull of Convex Polyhedral Sets. International Workshop on Computer Algebra in Scientific Computing 2022. Springer LNCS 13366, 2022.

Compatibility

• 

The PolyhedralSets[IntegerHull] command was introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

• 

The PolyhedralSets[IntegerHull] command was updated in Maple 2023.

See Also

PolyhedralSets[PolyhedralSet]

PolyhedralSets[VerticesAndRays]