--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pulp-or-discuss@googlegroups.com.
Visit this group at https://groups.google.com/group/pulp-or-discuss.
For more options, visit https://groups.google.com/d/optout.

Thank you for answering so quickly!The fact is that my code uses 300k variables and therefore I cannot rely on the free to use version of CPLEX but I need to use the academic version. I have downloaded it and I have installed IBM ILOG Studio, but I cannot understand how to "let Anaconda know" that it has the power to use CPLEX at full power (more than 1k variables).
Alternatively, are there any other solvers that I can easier use which can performa an optimizaion with that large number of variables?
That is the error that I have:
Thank you! I have installed GUROBI and the problem has been solved. The thing I do not understand is the following:
My problem is devided into two formulation (primal and dual). The primal is comprehensive of 380k variables and similar magnitude of constraints; the dual has 8k variables and a similar number of constraints (almost 400k). Those two separated model are, right now, performed in series. When I run only the primal I get an optimal result; when I run the two model in series I got "Status: Not Solved" for both without any other error. I have tried to run the same model using a smaller data set and I very quickly get a solution.Furthermore, the model need 2 hours and half for primal, and almost 3 for the dual. Is it possible to introduce multiprocessing in PuLP in order to make the computation quicker? It would be great for example to perform primal and dual formulation in parallel.Best regards,Nicolò
I haven't used the cplex in a while but first make sure that cplex is installed in pythondo this by typing>>> import cplexin the anaconda promptif you don't get an error then you can use the `CPLEX_PY` solver by doing the following>>> prob.solve(CPLEX_PY())Stu
Stuart MitchellPhD Engineering ScienceExtraordinary Freelance Programmer and Optimisation Guru
On Mon, Apr 9, 2018 at 5:04 AM, Nicolò Golinucci <nicolo....@gmail.com> wrote:
Hi Stu,I am using Python for LP modelling. I have used the default solver and I got a solution after several hours of programming. I need to speed up the code and I decided to use CPLEX.
I have installed CPLEX via Anaconda Prompt and I performed a run which was interrupted by an error such as "set too extended". So I thought that the version of CPLEX I have obtained was limited on number of variables (my problem needs 300k variables) and I downloaded an unlimted academic version but I cannot understand if pulp is able to use it. How do I let pulp use solvers I download?
Sorry if the question may seem trivial, but I am quite confusedThank you in advantage for your time,Nicolo
--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or...@googlegroups.com.
To post to this group, send email to pulp-or...@googlegroups.com.
--
New posters to this group are moderated which can take up to 48 hours, so please be patient if your first post takes a while to turn up.
---
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pulp-or-discuss/e5ff6378-3a9a-4521-bf2f-d0acb102e0c0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pulp-or-discuss/CAEfK-1dM3igND523CRNsmcgDGu4VC8P1iU16mKC%3D%2BN8zsaZhuA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pulp-or-discuss/CAP1-sZDXmgX0JRX9o%2BeuLwEe5XV1RsdV422UaRnMT7B8dSd0eQ%40mail.gmail.com.