Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in prob.solve() --cell 30 #2

Open
Nd-sole opened this issue Dec 25, 2019 · 1 comment
Open

Issue in prob.solve() --cell 30 #2

Nd-sole opened this issue Dec 25, 2019 · 1 comment

Comments

@Nd-sole
Copy link

Nd-sole commented Dec 25, 2019

I am trying to reimplement code in your notebooks. I get the error "PulpSolverError: Pulp: Error while executing /usr/local/lib/python3.6/dist-packages/pulp/solverdir/cbc/linux/64/cbc"
I tried checking the installations which seems to be fine. Can you suggest what might be the issue?

@gorgigithub
Copy link

I have probably the same error as nainadhingra2012 when trying to run the code. It gives me this:


PulpSolverError Traceback (most recent call last)
in ()
1 # The problem is solved using PuLP's choice of Solver
----> 2 prob.solve()

~/anaconda3/lib/python3.6/site-packages/pulp/pulp.py in solve(self, solver, **kwargs)
1711 """
1712
-> 1713 if not(solver): solver = self.solver
1714 if not(solver): solver = LpSolverDefault
1715 wasNone, dummyVar = self.fixObjective()

~/anaconda3/lib/python3.6/site-packages/pulp/solvers.py in actualSolve(self, lp, **kwargs)
1410 def available(self):
1411 """True if the solver is available"""
-> 1412 return self.executable(self.path)
1413
1414 def solve_CBC(self, lp, use_mps=True):

~/anaconda3/lib/python3.6/site-packages/pulp/solvers.py in solve_CBC(self, lp, use_mps)
1484 self.readsol_MPS(tmpSol, lp, lp.variables(), variablesNames, constraintsNames)
1485 lp.assignVarsVals(values)
-> 1486 lp.assignVarsDj(reducedCosts)
1487 lp.assignConsPi(shadowPrices)
1488 lp.assignConsSlack(slacks, activity=True)

PulpSolverError: Pulp: Error while executing /home/gorgi/anaconda3/lib/python3.6/site-packages/pulp/solverdir/cbc/linux/64/cbc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants