Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
general
albi
Bachelor Mario Surlemont
Commits
48d47bbc
Commit
48d47bbc
authored
May 27, 2020
by
msurl
Browse files
removed import
parent
64d81ae0
Changes
1
Show whitespace changes
Inline
Side-by-side
python/conda package/k_hop_dominating_set_gurobi/k_hop_dominating_set_gurobi/k_hop_dom_set.py
View file @
48d47bbc
...
...
@@ -11,7 +11,7 @@ from gurobipy import GRB
import
datetime
import
sys
import
matplotlib.pyplot
as
plt
import
lp_to_nx_graph
#
import lp_to_nx_graph
from
itertools
import
combinations
...
...
@@ -87,6 +87,7 @@ class ConnectedKHopDominatingSet(KHopDominatingSet):
self
.
m
.
_G
=
self
.
G
self
.
m
.
Params
.
lazyConstraints
=
1
self
.
m
.
optimize
(
RootedConnectecKHopDominatingSet
.
elim_unconnectivity
)
# elif self.constraints == ConnectivityConstraint.INDEGREE:
# self.m.optimize()
ds
=
{
i
for
i
,
x_i
in
enumerate
(
self
.
m
.
getVars
())
if
x_i
.
x
>
0.5
}
...
...
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