Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions runner/run_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_solver(solver_name):
seed_options = {
"highs": {"random_seed": 0, "mip_rel_gap": mip_gap},
"glpk": {"seed": 0, "mipgap": mip_gap},
"gurobi": {"seed": 0, "MIPGap": mip_gap},
"gurobi": {"seed": 0, "MIPGap": mip_gap, "Crossover": 0},
Comment thread
finozzifa marked this conversation as resolved.
"scip": {"randomization/randomseedshift": 0, "limits/gap": mip_gap},
"cbc": {
"randomCbcSeed": 1, # 0 indicates time of day
Expand All @@ -75,11 +75,17 @@ def get_solver(solver_name):
"cplex": {
"randomseed": 0,
"mip.tolerances.mipgap": mip_gap,
"solutiontype": 2,
},
"knitro": {
"KN_PARAM_MS_SEED": 1066,
"ms_seed": 1066,
"bar_maxcrossit": 0,
},
"xpress": {
"miprelgapnotify": mip_gap,
"randomseed": 0,
"crossover": 0,
},
"xpress": {"miprelgapnotify": mip_gap, "randomseed": 0},
}

return solver_class(**seed_options.get(solver_name, {}))
Expand Down
Loading