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
502c335e
Commit
502c335e
authored
May 27, 2020
by
msurl
Browse files
added readme
parent
48d47bbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
0 → 100644
View file @
502c335e
# How to execute the code?
## via conda package
1.
Run
`conda build /.../bachelor-mario-surlemont/python/conda\ package/k_hop_dominating_set_gurobi`
2.
Run
`conda install --use-local k_hop_dominating_set_gurobi`
3.
Run
`k_hop_dominating_set_gurobi -g /.../graph.lp -k k`
with k being the parameter k of the k-hop dominating set.
To delete the package just run
`conda uninstall --use-local k_hop_dominating_set_gurobi`
:warning: Dependencies might not be installed automatically. You will need the packages _networkx_, _gurobipy_, _matplotlib_!
## as python script
You can use the file
*k\_hop\_dom\_set.py*
as a python script.
Usage:
`python k_hop_dom_set.py /.../graph.lp k`
with k being the parameter k of the k-hop dominating set.
:warning: the import of _lp_to_nx_graph_ is commented out. This needs to be changed prior to use.
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