Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matt035343 committed Jun 12, 2024
1 parent 334eacb commit 2776bef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions anti_clustering/tabu_search_heuristic.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def _solve(self, distance_matrix: npt.NDArray[float], num_groups: int) -> npt.ND
cluster_assignment = new_cluster_assignment
objective = new_objective
tabu_swaps.append((i,j))
# Delete oldest tabu swap if tabu list is full
if len(tabu_swaps) > self.tabu_tenure:
tabu_swaps.pop(0)

Expand Down

0 comments on commit 2776bef

Please sign in to comment.