Page 1 of 1

Defining a very large polytope

Posted: 08 May 2025, 06:54
by paulcheung
Hi,

I would like to use the $p = new Polytope(POINTS=> ) function to define a new polytope.

However, the polytope has roughly 350 millions points with 80 dimensions. It will be almost impossible for me to copy and paste and edit those points onto the code terminal.

Originally, I have those points (each rows as a point with logical value 0, 1) saved in a matrix in Matlab (~600MB). I output those into a CSV file and it is huge (~50GB). Even with a CSV file, I am not sure how to deal with it.

I wonder if there is anyway I can save those points in a format such that it will be feasible for polymake to read it and do things like print $p->FACETS.

Your help is much appreciated. Thank you very much!!

Best,
Paul

Re: Defining a very large polytope

Posted: 08 May 2025, 13:11
by joswig
Please re-read what I wrote about much smaller input. You can spare the time; there is no way to compute convex hulls of this size. And, no, it is not a polymake problem.

Concerning passing data to polymake, you can write files that polymake can read. In addition to the current json, we still support, e.g., the old polymake format (which is easy to write) and lp.