Solver CoinMP_DLL unavailable in Python 2.7.1 r271:86832 64 bit, in Windows 7 64 bit

124 views
Skip to first unread message

JuanDa

unread,
May 23, 2011, 10:33:24 AM5/23/11
to pulp-or-discuss
Hi guys, I have been working with PulP OR. I am using it to solve
Operations Research problems in the transportation field. At the
beginning, I was working with Python 2.6 64 bit, and I had not had any
problem with PulP or any of its solvers. Last month I changed to
Python 2.7.1 64 bit. Unfortunately, The opensource solver CoinMP is
not being recognized, even when the file CoinMP_dll is in the folder
"solverdir". I wrote the absolute path of CoinMP_dll in
"pulp.cfg.win" , but it doesn't work. I don't know what else to do,
any ideas? Thanks...

Stuart Mitchell

unread,
May 23, 2011, 5:47:27 PM5/23/11
to pulp-or...@googlegroups.com
That is really strange.

In the next version of pulp I will have the command line cbc as the
default and hopefully this will avoid those problems (also the bug in
coin_mp for integer infeasible problems).

My suggestion right now is to move back to python 2.6 or put a copy of
cbc.exe (a working version can be found at http://opensolver.org/ in
the zip file) on the path and use COIN_CMD.

I will have a look at this as soon as I can.

Stu

> --
> You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
> To post to this group, send email to pulp-or...@googlegroups.com.
> To unsubscribe from this group, send email to pulp-or-discu...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pulp-or-discuss?hl=en.
>
>

--
Stuart Mitchell
PhD Engineering Science
Freelance Programmer and Optimisation Expert
www.stuartmitchell.com

JuanDa

unread,
May 24, 2011, 10:16:28 PM5/24/11
to pulp-or-discuss
Wooooaaaaa, Stuart, thank you very much!! I put a copy of cbc.exe, and
it works!, this is brilliant! :D

On May 23, 5:47 pm, Stuart Mitchell <s...@stuartmitchell.com> wrote:
> That is really strange.
>
> In the next version of pulp I will have the command line cbc as the
> default and hopefully this will avoid those problems (also the bug in
> coin_mp for integer infeasible problems).
>
> My suggestion right now is to move back to python 2.6 or put a copy of
> cbc.exe (a working version can be found athttp://opensolver.org/in
> the zip file) on the path and use COIN_CMD.
>
> I will have a look at this as soon as I can.
>
> Stu
>
>
>
>
>
>
>
>
>
> On Tue, May 24, 2011 at 2:33 AM, JuanDa <juand...@gmail.com> wrote:
> > Hi guys, I have been working with PulP OR. I am using it to solve
> > Operations Research problems in the transportation field. At the
> > beginning, I was working with Python 2.6 64 bit, and I had not had any
> > problem with PulP or any of its solvers. Last month I changed to
> > Python 2.7.1 64 bit. Unfortunately, The opensource solver CoinMP is
> > not being recognized, even when the file CoinMP_dll is in the folder
> > "solverdir". I wrote the absolute path of CoinMP_dll in
> > "pulp.cfg.win" , but it doesn't work. I don't know what else to do,
> > any ideas? Thanks...
>
> > --
> > You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.> To post to this group, send email topulp-o...@googlegroups.com.> To unsubscribe from this group, send email topulp-or-disc...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/pulp-or-discuss?hl=en.

Aditya

unread,
Jun 26, 2011, 9:07:38 AM6/26/11
to pulp-or-discuss
Even I am having the same problem. I will try your solution Stuart.
Hope it works. :)

Aditya

unread,
Jun 26, 2011, 9:16:36 AM6/26/11
to pulp-or-discuss
By the way, Juan, can you please guide me as to exactly where did you
put the copy of cbc.exe? I am not able to understand where exactly am
I supposed to put it. Also, are there any other changes that I am
supposed to do?

Thanks,
Aditya

On May 25, 7:16 am, JuanDa <juand...@gmail.com> wrote:

JuanDa

unread,
Jun 27, 2011, 11:55:26 AM6/27/11
to pulp-or-discuss
Hi Aditya. First of all, follow the steps defined by Stuart and
put the file "cbc.exe" in the folder solverdir (If any .dll is
required you can see which one is into the error message and look
for It in google). After this, you should modify the file
"pulp.cfg.win" inside the folder "C:\Python27\Lib\site-
packages\PuLP-1.4.8-py2.7.egg/pulp", the modification could be as
follows: in the line where says cbcPath you put the location of
the cbc.exe file
--->
CbcPath = C:\Python27\Lib\site-packages\PuLP-1.4.8-
py2.7.egg\pulp\solverdir\cbc (note that "cbc" was written without
its extension).

Finally you can test the new configuration. And to run the solver for
a specific program you can use solver(COIN_CMD())

Greetings.

On Jun 26, 9:16 am, Aditya <avkuvale...@gmail.com> wrote:
> By the way, Juan, can you please guide me as to exactly where did you
> put the copy of cbc.exe? I am not able to understand where exactly am
> I supposed to put it. Also, are there any other changes thatI am
> > > > --> > > You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.> To post to this group, send emailtopulp...@googlegroups.com.> To unsubscribe from this group, send emailtopulp-or-di...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages