Output format of FACETS
Posted: 12 Mar 2024, 16:05
Hi,
when I print facets of a polytope, according to documentation I should get a matrix of numbers, each rows represents one inequality with the numbers being the coeficients in the respective inequality. However, I get this:
How should I interpret this output and why does it look like this? Is it possible to force the output to adhere to the format from the docs?
For the context, I need to use polymake to convert polytopes from V-repre to H-repre, where the H-repre will need to be saved as CPLEX .lp format and lrs/cdd .ine format (but I can convert to these manually if I have the matrix representation).
when I print facets of a polytope, according to documentation I should get a matrix of numbers, each rows represents one inequality with the numbers being the coeficients in the respective inequality. However, I get this:
Code: Select all
> $c = cube(3,0);
> print $c->FACETS;
(4) (1 1)
1 -1 0 0
(4) (2 1)
1 0 -1 0
(4) (3 1)
1 0 0 -1
For the context, I need to use polymake to convert polytopes from V-repre to H-repre, where the H-repre will need to be saved as CPLEX .lp format and lrs/cdd .ine format (but I can convert to these manually if I have the matrix representation).