the next release will use cbc.exe as its default solver but in the mean time
1. download the file zip file from http://opensolver.org/
2. unpack the zip file and place cbc.exe in a suitable directory
(perhaps c:\cbc\)
3. change the path environment variable to include c:\cbc\ (to test
this open a command prompt and type cbc in
any directory it should start CBC)
4. solve you problems with the non default solver COIN_CMD
>>> prob.solve(COIN_CMD())
hope this works.
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
So, I was having this same issue and followed your instructions Stuart, now I get this error:PulpSolverError: Pulp: cannot execute cbc.exe cwd: \\icsdc00\redirect$\staff\My Documents\***********\My Documents\ICS Scheduling LP
Any ideas? I'd rather not go back to python 2.6 if possible. Thanks
To view this discussion on the web visit https://groups.google.com/d/msg/pulp-or-discuss/-/LJ-oRfTgyNUJ.
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.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/pulp-or-discuss.
For more options, visit https://groups.google.com/groups/opt_out.
Traceback (most recent call last):
File "<pyshell#24>", line 1, in <module>
pulp.pulpTestAll()
File "C:\Python27\lib\site-packages\pulp-1.5.4-py2.7.egg\pulp\pulp.py", line 2235, in pulpTestAll
pulpTestSolver(s)
File "C:\Python27\lib\site-packages\pulp-1.5.4-py2.7.egg\pulp\tests.py", line 560, in pulpTestSolver
t(solver(msg=msg))
File "C:\Python27\lib\site-packages\pulp-1.5.4-py2.7.egg\pulp\tests.py", line 80, in pulpTest010
pulpTestCheck(prob, solver, [LpStatusOptimal], {x:4, y:-1, z:6, w:0})
File "C:\Python27\lib\site-packages\pulp-1.5.4-py2.7.egg\pulp\tests.py", line 22, in pulpTestCheck
raise PulpError, "Tests failed for solver %s"%solver
PulpError: Tests failed for solver <pulp.solvers.CPLEX_CMD instance at 0x03358558>

--
You received this message because you are subscribed to a topic in the Google Groups "pulp-or-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pulp-or-discuss/KRTyfF1YePA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pulp-or-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
For more options, visit https://groups.google.com/d/optout.
import os
cwd = os.getcwd()
solverdir = 'cbc-2.7.1\\bin\\cbc.exe' # extracted and renamed the binary zip.
solverdir = os.path.join(cwd, solverdir)
solver = COIN_CMD(path=solverdir) # I am importing pulp using from pulp import *
prob.solve(solver)