Calling functions in Mathematica from Polymake.

Questions and problems about using polymake go here.
aalajmi
Posts: 2
Joined: 31 Mar 2018, 16:11

Calling functions in Mathematica from Polymake.

Postby aalajmi » 31 Mar 2018, 16:32

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?

opfer
Developer
Posts: 80
Joined: 04 Feb 2013, 11:12

Re: Calling functions in Mathematica from Polymake.

Postby opfer » 31 Mar 2018, 18:59

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

aalajmi
Posts: 2
Joined: 31 Mar 2018, 16:11

Re: Calling functions in Mathematica from Polymake.

Postby aalajmi » 31 Mar 2018, 20:11

Thank you for the reply.
I'm guessing that trying to write the corresponding algorithms for those functions in mathematica is difficult.


Return to “Helpdesk”