mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -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
|
||||
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,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user