mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Make Gurobi the default solver
This commit is contained in:
@@ -44,6 +44,7 @@ class InternalSolver():
|
|||||||
solution[str(var)][index] = var[index].value
|
solution[str(var)][index] = var[index].value
|
||||||
return solution
|
return solution
|
||||||
|
|
||||||
|
|
||||||
class GurobiSolver(InternalSolver):
|
class GurobiSolver(InternalSolver):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.solver = pe.SolverFactory('gurobi_persistent')
|
self.solver = pe.SolverFactory('gurobi_persistent')
|
||||||
@@ -128,7 +129,7 @@ class LearningSolver:
|
|||||||
components=None,
|
components=None,
|
||||||
gap_tolerance=None,
|
gap_tolerance=None,
|
||||||
mode="exact",
|
mode="exact",
|
||||||
solver="cplex",
|
solver="gurobi",
|
||||||
threads=4,
|
threads=4,
|
||||||
time_limit=None,
|
time_limit=None,
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user