Hi all! I am facing some troubles in doing a simple thing with polymake: What I would like to do is, from the command line, load a polytope in polymake, expressed through H-Description - equalities and inequalities -, print vertices, and have them saved on a file.

I have done a web search and I found that something like that should work:

Code: Select all

`polymake 'my $p=load("MyPol.poly"); print $p->VERTICES;' > MyOut.txt`

However, it sounds like my file "MyPol.poly" is not properly wrote, as I face the error

I have tried three different formats for the .poly file:

Code: Select all

`new Polytope(INEQUALITIES=>[...], EQUATIONS=>[...])`

Code: Select all

`Polytope(INEQUALITIES=>[...], EQUATIONS=>[...])`

Code: Select all

`(INEQUALITIES=>[...], EQUATIONS=>[...])`

But the three of them return the same error and I am not able to figure out a suitable format. I should generate it automatically because it contains hundreds of inequalities and equalities.

Thank you for helping.