|
@@ -143,6 +143,9 @@ class ILSSurrogate(Algorithm):
|
|
# enable resuming for ILS
|
|
# enable resuming for ILS
|
|
self.resume()
|
|
self.resume()
|
|
|
|
|
|
|
|
+ # initialize current solution
|
|
|
|
+ self.initRun()
|
|
|
|
+
|
|
if self.start_train_surrogate > self.getGlobalEvaluation():
|
|
if self.start_train_surrogate > self.getGlobalEvaluation():
|
|
|
|
|
|
# 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
|
|
@@ -159,9 +162,6 @@ class ILSSurrogate(Algorithm):
|
|
|
|
|
|
self.increaseEvaluation()
|
|
self.increaseEvaluation()
|
|
|
|
|
|
- # initialize current solution
|
|
|
|
- self.initRun()
|
|
|
|
-
|
|
|
|
# train surrogate on real evaluated solutions file
|
|
# train surrogate on real evaluated solutions file
|
|
self.train_surrogate()
|
|
self.train_surrogate()
|
|
self.load_surrogate()
|
|
self.load_surrogate()
|