|
@@ -144,8 +144,7 @@ class ILSSurrogate(Algorithm):
|
|
self.resume()
|
|
self.resume()
|
|
|
|
|
|
if self.start_train_surrogate <= self.getGlobalEvaluation():
|
|
if self.start_train_surrogate <= self.getGlobalEvaluation():
|
|
- self.load_surrogate()
|
|
|
|
- else:
|
|
|
|
|
|
+
|
|
# 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():
|
|
@@ -159,6 +158,8 @@ class ILSSurrogate(Algorithm):
|
|
self.add_to_surrogate(newSolution)
|
|
self.add_to_surrogate(newSolution)
|
|
|
|
|
|
self.increaseEvaluation()
|
|
self.increaseEvaluation()
|
|
|
|
+
|
|
|
|
+ self.load_surrogate()
|
|
|
|
|
|
# initialize current solution
|
|
# initialize current solution
|
|
self.initRun()
|
|
self.initRun()
|