浏览代码

add training of surrogate before loading it

Jérôme BUISINE 4 年之前
父节点
当前提交
26767bfddc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      optimization/ILSSurrogate.py

+ 2 - 0
optimization/ILSSurrogate.py

@@ -159,6 +159,8 @@ class ILSSurrogate(Algorithm):
 
                 self.increaseEvaluation()
         
+        # train surrogate on real evaluated solutions file
+        self.train_surrogate()
         self.load_surrogate()
 
         # initialize current solution