Loading pyehub/pylp/problem.py +2 −2 Original line number Diff line number Diff line Loading @@ -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.") Loading Loading
pyehub/pylp/problem.py +2 −2 Original line number Diff line number Diff line Loading @@ -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.") Loading