From 1dcc89d6f9481368be538ae7339c1793fb546398 Mon Sep 17 00:00:00 2001 From: JonZhao <1044264932@qq.com> Date: Wed, 29 May 2019 14:30:38 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0figure=20class=EF=BC=9A=E5=9C=A8?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=BB=98=E5=88=B6line=E7=9A=84=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E4=B8=AD=EF=BC=8C=E5=8F=AA=E7=A7=BB=E9=99=A4=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E7=BB=98=E5=88=B6=E4=BA=86=E7=9A=84line=EF=BC=9B?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E9=85=8D=E8=89=B2=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example1.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'example1.py') 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() -- cgit v1.2.3