diff options
Diffstat (limited to 'example2.py')
| -rw-r--r-- | example2.py | 11 |
1 files changed, 9 insertions, 2 deletions
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() |
