Skip to content

Commit

Permalink
Profit Problem class
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickOHara committed Nov 26, 2020
1 parent 8507c18 commit 61dac04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tspwplib/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ def load_tsplib_dataset(root: Path, name: InstanceName):
"""Load a TSP lib problem"""
problem = tsplib95.load(root / (name.value + ".tsp"))
return problem

class ProfitsProblem(tsplib95.models.Problem):
"""TSP with Profits Problem"""

# TODO allow cost limit
# TODO add profit limit

0 comments on commit 61dac04

Please sign in to comment.