Vertex to Hyperplane representation
Posted: 24 Apr 2025, 23:10
Although I thought it will be something trivial, I cannot find how to obtain the hyperplane representation of a polyhedron given by its vertices. Polymake use lrs, and it is very easy there, so must be here too.
What I have tried:
which gives an error, but no inequalities in compressed form. However, I can print the constraints like this:
But I need it in matrix form instead. How can I get that?
Thanks in advance!
What I have tried:
Code: Select all
$p = new Polytope(POINTS=>[[1,0,0,0],[1,8,0,0],[1,9,0,3],[1,9,3,0],[1,0,12,0],[1,0,0,12]]);
print $p->INEQUALITIES;Code: Select all
print_constraints($p);Thanks in advance!