Macaulay2 » Documentation
Packages » PALPInterface :: palpIsIP
next | previous | forward | backward | up | index | toc

palpIsIP -- whether the origin is an interior point of a polytope

Description

PALP calls a polytope IP when the origin is an interior point, that is, when every facet inequality $\langle a, x \rangle + c \ge 0$ has $c > 0$. A reflexive polytope is IP, but an IP polytope need not be reflexive, and the summary line of palpInfo does not tell the two kinds of non-reflexive polytope apart.

i1 : palpIsIP matrix{{1,0,0,-1},{0,1,0,-1},{0,0,1,-1}}

o1 = true
i2 : palpIsIP matrix{{2,0,0,-1},{0,1,0,-1},{0,0,1,-1}}

o2 = true
i3 : palpIsReflexive matrix{{2,0,0,-1},{0,1,0,-1},{0,0,1,-1}}

o3 = false

The origin must be strictly inside: a vertex, or a point outside, does not count.

i4 : palpIsIP matrix{{0,1,0,0},{0,0,1,0},{0,0,0,1}}

o4 = false
i5 : palpIsIP matrix{{1,2,1,1},{0,0,1,0},{0,0,0,1}}

o5 = false

A weight system is IP when its polytope $\Delta(q)$ is. PALP computes the polytope even when it is not, so weightSystemVertices alone does not tell you.

i6 : palpIsIP {5, 1, 1, 1, 1, 1}

o6 = true
i7 : palpIsIP {9, 1, 1, 2, 5}

o7 = false
i8 : weightSystemVertices {9, 1, 1, 2, 5}

o8 = | -1 8  -1 0  -1 3  -1 |
     | -1 -1 3  3  -1 -1 1  |
     | -1 -1 -1 -1 0  0  0  |

              3       7
o8 : Matrix ZZ  <-- ZZ

Caveat

The same question can be answered without PALP by inInterior(0, convexHull A), using inInterior.

See also

Ways to use palpIsIP:

  • palpIsIP(List)
  • palpIsIP(Matrix)
  • palpIsIP(WeightSystem)

For the programmer

The object palpIsIP is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/PALPInterface.m2:1959:0.