Commit 6978b793 authored by Theodor Christiaanse's avatar Theodor Christiaanse
Browse files

added a solver setting

parent 8fb59431
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -45,6 +45,8 @@ def solve(*, objective=None, constraints: Iterable[Constraint] = None,
            problem += constraint.construct()

    if solver == 'glpk':
        solver = pulp.solvers.GLPK(msg=verbose)
    elif solver == 'glpk-theo-cluster':
        solver = pulp.solvers.GLPK(msg=verbose, path='/home/theochri/ENV/bin/glpsol')
    elif solver == 'cplex':
        solver = pulp.solvers.CPLEX(msg=verbose)