Parcourir la source

Update of checkpoint module

Jérôme BUISINE il y a 4 ans
Parent
commit
04ab8957e3
2 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1 1
      algorithms/LocalSearch.py
  2. 0 3
      checkpoints/BasicCheckpoint.py

+ 1 - 1
algorithms/LocalSearch.py

@@ -14,7 +14,7 @@ class LocalSearch(Algorithm):
         solutionSize = self.bestSolution.size
 
         # local search algorithm implementation
-        while self.getGlobalEvaluation() < self.maxEvalutations:
+        while self.numberOfEvaluations < self.maxEvalutations:
 
             for _ in range(solutionSize):
 

+ 0 - 3
checkpoints/BasicCheckpoint.py

@@ -51,14 +51,11 @@ class BasicCheckpoint(Checkpoint):
                 # get evaluation  information 
                 globalEvaluation = int(data[0])
 
-                print(globalEvaluation, data)
-
                 if self.algo.parent is not None:
                     self.algo.parent.numberOfEvaluations = globalEvaluation
                 else:
                     self.algo.numberOfEvaluations = globalEvaluation
 
-                print(self.algo.numberOfEvaluations)
                 # get best solution data information
                 solutionData = list(map(int, data[1].split(' ')))