solver utils: reorder, redoc constraint list
@@ -67,9 +67,9 @@ class SolverLookup():
First one is default
"""
return [("ortools", CPM_ortools),
- ("minizinc", CPM_minizinc),
+ ("gurobi", CPM_gurobi),
("pysat", CPM_pysat),
- ("gurobi", CPM_gurobi)
+ ("minizinc", CPM_minizinc),
]
@staticmethod
@@ -127,9 +127,9 @@ class SolverLookup():
return CPM_slv
-# using builtin_solvers is DEPRECATED
+# using `builtin_solvers` is DEPRECATED, use `SolverLookup` object instead
# Order matters! first is default, then tries second, etc...
-builtin_solvers=[CPM_ortools,CPM_minizinc,CPM_pysat]
+builtin_solvers = [CPM_ortools, CPM_gurobi, CPM_minizinc, CPM_pysat]
def get_supported_solvers():
"""
Returns a list of solvers supported on this machine.
