Permalink
Browse files

added some comments about the local search functions implementations

  • Loading branch information...
1 parent ad5c940 commit fcf969e59cf8e44710255786df1e1a60d78a665b @douglascamata committed Aug 16, 2015
Showing with 4 additions and 0 deletions.
  1. +4 −0 knapsack/local_search.py
View
@@ -1,3 +1,7 @@
+# Both local search functions in this file would need to be updated to actually
+# execute movements in the knapsack and find a better solution. See the Tabu
+# Search implementation for an idea of how to do this.
+#
def best_improving(solutions, knapsack):
sorted_solutions = sorted(solutions, key=lambda move: move.movement_avaliation, reverse=True)
if len(sorted_solutions) == 0:

0 comments on commit fcf969e

Please sign in to comment.