diff options
| author | JonZhao <[email protected]> | 2019-05-29 14:30:38 +0800 |
|---|---|---|
| committer | JonZhao <[email protected]> | 2019-05-29 14:30:38 +0800 |
| commit | 1dcc89d6f9481368be538ae7339c1793fb546398 (patch) | |
| tree | 5e43146089540d87bab69b5ba1e87422ec1ab002 /example1.py | |
| parent | 8d459d62b4deed1212f613cad1967b36ca385d5a (diff) | |
| download | VRPTW-ACO-python-1dcc89d6f9481368be538ae7339c1793fb546398.tar.gz VRPTW-ACO-python-1dcc89d6f9481368be538ae7339c1793fb546398.tar.bz2 VRPTW-ACO-python-1dcc89d6f9481368be538ae7339c1793fb546398.zip | |
更新figure class:在重新绘制line的过程中,只移除之前绘制了的line;更新了配色方案
Diffstat (limited to 'example1.py')
| -rw-r--r-- | example1.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/example1.py b/example1.py index c7629e8..370a5d7 100644 --- a/example1.py +++ b/example1.py @@ -3,8 +3,12 @@ from multiple_ant_colony_system import MultipleAntColonySystem if __name__ == '__main__': - file_path = './solomon-100/c101.txt' - graph = VrptwGraph(file_path) + file_path = './solomon-100/rc101.txt' + ants_num = 10 + beta = 2 + q0 = 0.1 + show_figure = True - macs = MultipleAntColonySystem(graph) + graph = VrptwGraph(file_path) + macs = MultipleAntColonySystem(graph, ants_num=ants_num, beta=beta, q0=q0, whether_or_not_to_show_figure=show_figure) macs.run_multiple_ant_colony_system() |
