From 1dcc89d6f9481368be538ae7339c1793fb546398 Mon Sep 17 00:00:00 2001 From: JonZhao <1044264932@qq.com> Date: Wed, 29 May 2019 14:30:38 +0800 Subject: 更新figure class:在重新绘制line的过程中,只移除之前绘制了的line;更新了配色方案 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example2.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'example2.py') diff --git a/example2.py b/example2.py index 16e12b2..8afb652 100644 --- a/example2.py +++ b/example2.py @@ -4,7 +4,14 @@ from basic_aco import BasicACO if __name__ == '__main__': file_path = './solomon-100/c101.txt' + ants_num = 10 + max_iter = 200 + beta = 2 + q0 = 0.1 + show_figure = True + graph = VrptwGraph(file_path) + basic_aco = BasicACO(graph, ants_num=ants_num, max_iter=max_iter, beta=beta, q0=q0, + whether_or_not_to_show_figure=show_figure) - vrptw = BasicACO(graph) - vrptw.run_basic_aco() \ No newline at end of file + basic_aco.run_basic_aco() -- cgit v1.2.3