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
a925455a
Commit
a925455a
authored
Jan 29, 2018
by
Max Lyon
Browse files
remove code duplication in gurobi solver
parent
6f01aa6c
Pipeline
#6101
failed with stages
in 4 minutes and 17 seconds
Changes
2
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
NSolver/GUROBISolver.cc
View file @
a925455a
This diff is collapsed.
Click to expand it.
NSolver/GUROBISolver.hh
View file @
a925455a
...
...
@@ -96,7 +96,8 @@ public:
const
std
::
vector
<
NConstraintInterface
*>&
_lazy_constraints
,
const
std
::
vector
<
PairIndexVtype
>&
_discrete_constraints
,
// discrete constraints
const
double
_time_limit
=
60
,
const
bool
_silent
=
false
);
const
double
_gap
=
0.0
,
const
int
_lazy_level
=
0
);
// lazy level between 0 and 3
// same as above with additional lazy constraints that are only added iteratively to the problem if not satisfied
...
...
@@ -119,13 +120,6 @@ public:
void
set_solution_input_path
(
const
std
::
string
&
_solution_input_path
);
protected:
double
*
P
(
std
::
vector
<
double
>&
_v
)
{
if
(
!
_v
.
empty
())
return
((
double
*
)
&
_v
[
0
]);
else
return
0
;
}
private:
...
...
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