Parcourir la source

fix while loop issue..

Jérôme BUISINE il y a 4 ans
Parent
commit
d0e7a639ad
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      optimization/ILSSurrogate.py

+ 1 - 1
optimization/ILSSurrogate.py

@@ -147,7 +147,7 @@ class ILSSurrogate(Algorithm):
         
         
             # get `self.start_train_surrogate` number of real evaluations and save it into surrogate dataset file
             # get `self.start_train_surrogate` number of real evaluations and save it into surrogate dataset file
             # using randomly generated solutions (in order to cover seearch space)
             # using randomly generated solutions (in order to cover seearch space)
-            while self.start_train_surrogate <= self.getGlobalEvaluation():
+            while self.start_train_surrogate > self.getGlobalEvaluation():
                 
                 
                 newSolution = self.initializer()
                 newSolution = self.initializer()