Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
CoMISo
Commits
8122cda8
Commit
8122cda8
authored
Apr 09, 2015
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
NSolver/GUROBISolver.cc
View file @
8122cda8
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment