Search found 13 matches

Go to advanced search

by Tryer
07 Mar 2022, 01:26
Forum: Helpdesk
Topic: Static library/Linking Polymake C++ code for windows machine
Replies: 5
Views: 7491

Re: Static library/Linking Polymake C++ code for windows machine

My usage of CPLEX is somewhat advanced -- I have to use some sort of repeated branch and cut with cut callbacks to solve large difficult integer programs. Efficiency is critical and in our experience CPLEX performs quite adequately in its correctness. I will try the various ideas suggested and see w...
by Tryer
06 Mar 2022, 14:00
Forum: Helpdesk
Topic: Static library/Linking Polymake C++ code for windows machine
Replies: 5
Views: 7491

Re: Static library/Linking Polymake C++ code for windows machine

Thanks for the explanation. In my application, I have to use another library only by static linking since the providers of that library (CPLEX) do not provide shared linking for linux. I went ahead trying to include polymake and was able to compile and link/build successfully. However, linking now p...
by Tryer
06 Mar 2022, 04:41
Forum: Helpdesk
Topic: Static library/Linking Polymake C++ code for windows machine
Replies: 5
Views: 7491

Static library/Linking Polymake C++ code for windows machine

Hello, This is more a C++ linking/compiling question rather than a polymake question. This line from polymake's documentation seems to suggest that a "unix emulation" is needed on Windows https://polymake.org/doku.php/install/install: polymake is not supported on any native Windows platfor...
by Tryer
04 Mar 2022, 16:47
Forum: Helpdesk
Topic: Equivalence between a PORTA output and Polymake output for same input
Replies: 1
Views: 4991

Equivalence between a PORTA output and Polymake output for same input

Hello, In PORTA, I process the test.poi file with content reproduced below (the online message system does not allow me to attach a .poi file): DIM = 6 CONV_SECTION 0 1 1 0 0 1 1 0 0 1 1 0 0 0 1 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 0 0 1 1 1 CONE_SECTION 1 0 0 0 0 0 0 1 0 0 0 0 0 ...
by Tryer
03 Mar 2022, 17:34
Forum: Helpdesk
Topic: Accessing facets and affine hull data structures in C++
Replies: 6
Views: 4044

Re: Accessing facets and affine hull data structures in C++

In general: no. Rational is an exact type, double is not. If a conversion makes sense or not will depend on what you want to compute. Usually, you just want to stick with Rational. polymake supports arithmetic, linear algebra etc. Why do you want to convert at all? I have other functions in my own ...
by Tryer
03 Mar 2022, 15:42
Forum: Helpdesk
Topic: Accessing facets and affine hull data structures in C++
Replies: 6
Views: 4044

Re: Accessing facets and affine hull data structures in C++

Thanks gawrilow and joswig. I have been able to make progress based on your comments. My code currently is: #include <polymake/Main.h> #include <polymake/Matrix.h> #include <polymake/SparseMatrix.h> #include <polymake/Rational.h> using namespace polymake; int main(int argc, const char* argv[]) { try...
by Tryer
03 Mar 2022, 03:41
Forum: Helpdesk
Topic: Accessing facets and affine hull data structures in C++
Replies: 6
Views: 4044

Accessing facets and affine hull data structures in C++

Hello, I have the following code in C++: #include <polymake/Main.h> #include <polymake/Matrix.h> #include <polymake/SparseMatrix.h> #include <polymake/Rational.h> using namespace polymake; int main(int argc, const char* argv[]) { try { const int dim = 4; Main pm; pm.set_application("polytope&qu...
by Tryer
02 Mar 2022, 11:44
Forum: Helpdesk
Topic: Running into a compile error on example C++ code
Replies: 11
Views: 6956

Re: Running into a compile error on example C++ code

Sure, I would be happy to help via some tests if needed. I have access to a WSL and a pure ubuntu machine. I will pm my email detail. On a WSL machine, with no previous polymake installation, building from source gave rise to the following: the /usr/lib/polymake folder does not have perlx or config....
by Tryer
02 Mar 2022, 02:50
Forum: Helpdesk
Topic: Running into a compile error on example C++ code
Replies: 11
Views: 6956

Re: Running into a compile error on example C++ code

Indeed building from source code did the trick. The symlink was not created by default. I had to do the following manually: :/usr/lib/polymake$ sudo ln -s ../../share/polymake/ shared The c++ code compiled and ran fine. I obtained the following output: polymake: used package cdd cddlib Implementatio...
by Tryer
02 Mar 2022, 00:28
Forum: Helpdesk
Topic: Running into a compile error on example C++ code
Replies: 11
Views: 6956

Re: Running into a compile error on example C++ code

Creation of the symlink eliminated that error. Now, there is a new error on that very line: Can't locate Polymake/Main.pm in @INC (you may need to install the Polymake::Main module) (@INC contains: /usr/share/perllib /usr/lib/polymake/perlx/5.30.0/x86_64-linux-gnu-thread-multi /usr/lib/polymake/perl...

Go to advanced search