瀏覽代碼

求解中间参数

huangxingxing 7 月之前
父節點
當前提交
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")