huangxingxing 7 месяцев назад
Родитель
Сommit
5817d5881a
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/main/resources/templates/run.ftl

+ 3 - 0
src/main/resources/templates/run.ftl

@@ -2,3 +2,6 @@ from surromdao.utils import *
 prob = Problem.load_problem_from_xml('${problemPath}')
 opt = OptTask(prob, "tz")
 opt.run()
+history = opt.get_history()
+history.save_history_to_txt(file_path="../outdata/nsga2_history1.txt")
+history.save_best_obj_history_to_txt(file_path="../outdata/nsga2_history2.txt")