Parcourir la source

Pass algo as parameter

Jérôme BUISINE il y a 3 ans
Parent
commit
72d31f1220
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      optimization/callbacks/SurrogateMonoCheckpoint.py

+ 4 - 4
optimization/callbacks/SurrogateMonoCheckpoint.py

@@ -81,11 +81,11 @@ class SurrogateMonoCheckpoint(Callback):
                 # set k_indices into main algorithm
                 # set k_indices into main algorithm
                 self._algo._total_n_local_search = n_local_search
                 self._algo._total_n_local_search = n_local_search
 
 
-            print(macop_line())
-            print(macop_text(f'SurrogateMonoCheckpoint found from `{self._filepath}` file.'))
+            print(macop_line(self._algo))
+            print(macop_text(self._algo, f'SurrogateMonoCheckpoint found from `{self._filepath}` file.'))
 
 
         else:
         else:
-            print(macop_text('No backup found...'))
+            print(macop_text(self._algo, 'No backup found...'))
             logging.info("Can't load Surrogate backup... Backup filepath not valid in SurrogateCheckpoint")
             logging.info("Can't load Surrogate backup... Backup filepath not valid in SurrogateCheckpoint")
 
 
-        print(macop_line())
+        print(macop_line(self._algo))