You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Activity
gorgigithub commentedon Apr 1, 2020
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