Page 1 of 1

Calling functions in Mathematica from Polymake.

Posted: 31 Mar 2018, 16:32
by aalajmi
Hello everyone.
So far I have been using Mathematica for simple operations on lattice polytopes (as matrices where each column represents a vertex). I have been mapping them around, and checking their widths in a given direction.

Now I need to use more complex operations, such as finding the h-description of polytopes, and finding the convex hull of the interior lattice points and express it as the convex hull of its extreme points. After searching around, I found polymake. One major problem is that I use windows, and is unable to fully use polymake besides the interactive version. I might be able to overcome this problem, but another problem is having to rewrite what I have in polymake.

My basic question is, is it possible to write functions in polymake, and use it in Mathematica. For example, say I have a matrix representing a polytope, and I want to evaluate the half spaces representation of it in polytope, how hard would this be?

Re: Calling functions in Mathematica from Polymake.

Posted: 31 Mar 2018, 18:59
by opfer
I guess the biggest problem is that you are on Windows. While it might be possible to use the callable library to somehow connect Mathematica and polymake, I doubt, you will get polymake up and running natively on Windows. Maybe the easiest way is to transfer data between Mathematica and polymake through files.

Best regards,
Thomas

Re: Calling functions in Mathematica from Polymake.

Posted: 31 Mar 2018, 20:11
by aalajmi
Thank you for the reply.
I'm guessing that trying to write the corresponding algorithms for those functions in mathematica is difficult.