Commit 552a357e authored by Theo Christiaanse's avatar Theo Christiaanse
Browse files

finally I found the solver_path bug (and fixed it!)

parent ef2e3216
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -66,14 +66,14 @@ def solve(
            problem += constraint.construct()

    if solver == "glpk":
        if solver_path==None:
        if solver_path!=None:
            solver = pulp.solvers.GLPK(msg=verbose, path=solver_path, options=options)
        else:
            print("solver_path is not set, going to default, without options")
            # This catches the error if glpk_path is not set
            solver = pulp.solvers.GLPK(msg=verbose)
    elif solver == "glpk-cluster":
        if solver_path==None:
        if solver_path!=None:
            solver = pulp.solvers.GLPK(msg=verbose, path=solver_path, options=options)
        else:
            print("solver_path is not set, going to default.")