Make Gurobi the default solver

pull/1/head
Alinson S. Xavier 6 years ago
parent 24b0a7888e
commit 10ad8e0a9e

@ -44,6 +44,7 @@ class InternalSolver():
solution[str(var)][index] = var[index].value
return solution
class GurobiSolver(InternalSolver):
def __init__(self):
self.solver = pe.SolverFactory('gurobi_persistent')
@ -128,7 +129,7 @@ class LearningSolver:
components=None,
gap_tolerance=None,
mode="exact",
solver="cplex",
solver="gurobi",
threads=4,
time_limit=None,
):

Loading…
Cancel
Save