Skip to content

Commit

Permalink
🚨 Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickOHara committed Nov 27, 2020
1 parent 4b20412 commit 23b6006
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tests/test_profits_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def test_get_cost_limit(oplib_root, generation, instance_name, alpha):
oplib_root, generation, instance_name, alpha=alpha
)
problem = ProfitsProblem.load(filepath)
# total_cost = sum([problem.get_weight(source, target) for source, target in problem.get_edges()])

expected_cost_limit = math.ceil(
OptimalSolutionTSP[instance_name] * (alpha.value / 100.0)
)
Expand Down
2 changes: 0 additions & 2 deletions tspwplib/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class ProfitsProblem(tsplib95.models.StandardProblem):
node_score = tsplib95.fields.DemandsField("NODE_SCORE_SECTION")
# The optimal solution to the TSP
tspsol = tsplib95.fields.IntegerField("TSPSOL")
# TODO add profit limit for PcTSP

def get_cost_limit(self) -> int:
"""Get the cost limit for a TSP with Profits problem
Expand All @@ -29,7 +28,6 @@ def get_node_score(self) -> Dict[int, int]:
Returns:
Mapping from node to node score (profit)
"""
# TODO

def get_tsp_optimal_value(self) -> int:
"""Get the value of the optimal solution to TSP
Expand Down

0 comments on commit 23b6006

Please sign in to comment.