Commit 8122cda8 authored by Martin Marinov's avatar Martin Marinov
Browse files

Switched on the IGM MIPS L1 model to replace the L2 model.

[git-p4: depot-paths = "//ReForm/ReForm/main/CoMISo/": change = 11758]
parent d1460e82
......@@ -67,10 +67,13 @@ void GUROBISolver::solve(
GRBEnv env = GRBEnv();
GRBModel model = GRBModel(env);
//model.getEnv().set(GRB_DoubleParam_TimeLimit, _time_limit);
//if (_problem->constant_gradient())
// model.getEnv().set(GRB_DoubleParam_TimeLimit, _time_limit);
// stop when a solution is found
model.getEnv().set(GRB_IntParam_SolutionLimit, 2);
// LP optimization is more likely to hit a poor feasible solution, so
// increase the number of tested feasible solutions
model.getEnv().set(GRB_IntParam_SolutionLimit,
_problem->constant_gradient() ? 4 : 2);
//----------------------------------------------
// 1. allocate variables
......
Supports Markdown
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