0
$\begingroup$

I'm trying to do some polyhedral manipulations in Mathematica by using some functions from Polymake. But I have difficulty in passing the result from Mathematica to Polymake as an input without leaving the Mathematica environment.

My main question is how to start and call functions of Polymake from Mathematica. I googled my question and found some examples for external calls, but functions in those examples are standalone functions, i.e., they can be called directly. But now I want to call some functions in Polymake from Mathematica. How can I perform the external calls then?

For example, I want to call a function fun in Polymake from Mathematica. If I can perform the external calls directly to fun, then I won't be here. Question is how to let the system know I'm called a function from Polymake. I hope I have made my question clear enough.

$\endgroup$
6
  • 1
    $\begingroup$ mathematica.stackexchange.com/a/59676/193 $\endgroup$ – Dr. belisarius Apr 4 '16 at 5:56
  • $\begingroup$ @Dr.belisarius Yes. Actually, that leads to a question of mine years ago. I didn't see the usage of Polymake until recently. But I have no idea on how to perform external calls from Mahtematica. $\endgroup$ – hxiao Apr 4 '16 at 6:03
  • $\begingroup$ But ... you have already received an answer for this question.May be it is not what you expected, but at least you may have linked it instead of posting this one as if it were a new thing here $\endgroup$ – Dr. belisarius Apr 4 '16 at 6:07
  • $\begingroup$ @Dr.belisarius Well, I think they are totally two different things. In the linked question, I found some useful packages for vertex enumeration. And in this question, I want to know how to use it. $\endgroup$ – hxiao Apr 4 '16 at 6:15
  • $\begingroup$ @HanXiao Can Polymake be called from the command line, passing it parameters to indicate inputs / outputs and what to do? $\endgroup$ – MarcoB Apr 4 '16 at 20:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.