Code: Select all
polytope > $p=new Polytope(POINTS=>[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]);
polytope > print $p->FACETS;
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
However, there are only 4 entries per line. print_constraints seems to be as confused as me, since it prints:Each line describes one linear inequality. The encoding is as follows: (a_0,a_1,…,a_d) is the inequality a_0 + a_1 x_1 + … + a_d x_d >= 0. [...] Use the command print_constraints($m) to display the inequalities of the matrix $m in a nice way.
Code: Select all
polytope > print_constraints $p->FACETS;
0: 0 >= -1
1: x1 >= 0
2: x2 >= 0
3: x3 >= 0