Skip to content

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

Open

Description

@Nd-sole

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

  1. gorgigithub commented on Apr 1, 2020

    @gorgigithub

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions