Multiprocessing - CPython and PyPy

Hi everyone. Im trying to solve some problems in parallel using the multiprocessing module in Python 2.7. A general model is built using CPython and then the subproblems are solved in parallel returning results in a queue. This is currently working fine. I would like to solve the subproblems using PyPy to increase speed. I found http://project-trains.tumblr.com/post/102076598295/multiprocessing-pypy , but there it says that the procedure only works with CPython 3.4. I wonder is there is any clean direct way to do this. Appreciate any help. -- Luis J. Novoa

Hi Maciej, Thanks for your reply. The problem is that Im using gurobipy (for the interaction with the mathematical programming solver Gurobi) to solve a master problem and then using the output to solve the subproblems. Now, gurobipy is not compatible wiith PyPy. On Tue, Nov 24, 2015 at 3:23 PM, Maciej Fijalkowski <fijall@gmail.com> wrote:
-- Luis J. Novoa

I get the following: \Downloads\pypy-4.0.0-win32\pypy-4.0.0-win32\site-packages\gurobipy\__init__.py", line 1, in <module> from .gurobipy import * ImportError: No module named gurobipy.gurobipy After installing it as pypy setup,py install On Tue, Nov 24, 2015 at 3:45 PM, Laura Creighton <lac@openend.se> wrote:
-- Luis J. Novoa

fwiw, you might want to look at this: https://github.com/felipecruz/gurobi_cffi from what I read in the readme, it probably exposes a different interface than gurobipy, but it might enough for your use case. On Tue, Nov 24, 2015 at 9:35 PM, Luis José Novoa <luisjosenovoa@gmail.com> wrote:

Thank you for your reply. I've looked into https://github.com/felipecruz/gurobi_cffi before, and, unfortunately, it does not have the full capabilities of gurobipy LJN On Nov 25, 2015 8:05 AM, "Antonio Cuni" <anto.cuni@gmail.com> wrote:

Hi Maciej, Thanks for your reply. The problem is that Im using gurobipy (for the interaction with the mathematical programming solver Gurobi) to solve a master problem and then using the output to solve the subproblems. Now, gurobipy is not compatible wiith PyPy. On Tue, Nov 24, 2015 at 3:23 PM, Maciej Fijalkowski <fijall@gmail.com> wrote:
-- Luis J. Novoa

I get the following: \Downloads\pypy-4.0.0-win32\pypy-4.0.0-win32\site-packages\gurobipy\__init__.py", line 1, in <module> from .gurobipy import * ImportError: No module named gurobipy.gurobipy After installing it as pypy setup,py install On Tue, Nov 24, 2015 at 3:45 PM, Laura Creighton <lac@openend.se> wrote:
-- Luis J. Novoa

fwiw, you might want to look at this: https://github.com/felipecruz/gurobi_cffi from what I read in the readme, it probably exposes a different interface than gurobipy, but it might enough for your use case. On Tue, Nov 24, 2015 at 9:35 PM, Luis José Novoa <luisjosenovoa@gmail.com> wrote:

Thank you for your reply. I've looked into https://github.com/felipecruz/gurobi_cffi before, and, unfortunately, it does not have the full capabilities of gurobipy LJN On Nov 25, 2015 8:05 AM, "Antonio Cuni" <anto.cuni@gmail.com> wrote:
participants (4)
-
Antonio Cuni
-
Laura Creighton
-
Luis José Novoa
-
Maciej Fijalkowski