Commit 2275fc93 authored by Sebastian Schwarz's avatar Sebastian Schwarz
Browse files

Changed pycity_scheduling default optimization solver to gurobi.

parent b2f4f4fe
Pipeline #490883 canceled with stages
in 18 minutes and 38 seconds
......@@ -24,14 +24,17 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# Specify different third-party mathematical programming solvers and solver options:
SCIP_SOLVER = "scip"
SCIP_SOLVER_OPTIONS = {'solve': {'options': {}}}
BONMIN_SOLVER = "bonmin"
BONMIN_SOLVER_OPTIONS = {'solve': {'options': {'bonmin.algorithm': 'b-hyb',
'bonmin.allowable_gap': 1e-10,
'bonmin.allowable_fraction_gap': 1e-4}}}
CPLEX_SOLVER = "cplex"
CPLEX_SOLVER_OPTIONS = {'solve': {'options': {}}}
GLPK_SOLVER = "glpk"
GLPK_SOLVER_OPTIONS = {'solve': {'options': {}}}
GUROBI_DIRECT_SOLVER = "gurobi_direct"
GUROBI_DIRECT_SOLVER_OPTIONS = {'solve': {'options': {'OutputFlag': 0,
'LogToConsole': 0,
......@@ -44,10 +47,10 @@ GUROBI_PERSISTENT_SOLVER_OPTIONS = {'solve': {'options': {'OutputFlag': 0,
'Logfile': "",
"Method": 1}}}
CPLEX_SOLVER = "cplex"
CPLEX_SOLVER_OPTIONS = {'solve': {'options': {}}}
SCIP_SOLVER = "scip"
SCIP_SOLVER_OPTIONS = {'solve': {'options': {}}}
# Set the default mathematical programming solver to be used by the pycity_scheduling framework:
DEFAULT_SOLVER = SCIP_SOLVER
DEFAULT_SOLVER_OPTIONS = SCIP_SOLVER_OPTIONS
DEFAULT_SOLVER = GUROBI_DIRECT_SOLVER
DEFAULT_SOLVER_OPTIONS = GUROBI_DIRECT_SOLVER_OPTIONS
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment