Load file from command line, elaborate, print output
Posted: 28 Oct 2020, 10:46
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:
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:
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.
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
Code: Select all
line 2: ill-formed section header
Code: Select all
new Polytope(INEQUALITIES=>[...], EQUATIONS=>[...])
Code: Select all
Polytope(INEQUALITIES=>[...], EQUATIONS=>[...])
Code: Select all
(INEQUALITIES=>[...], EQUATIONS=>[...])
Thank you for helping.