aboutsummaryrefslogtreecommitdiff
path: root/example1.py
diff options
context:
space:
mode:
authorJonZhao <1044264932@qq.com>2019-05-29 11:21:19 +0800
committerJonZhao <1044264932@qq.com>2019-05-29 11:21:19 +0800
commit8d459d62b4deed1212f613cad1967b36ca385d5a (patch)
tree7e34f4374c753d637ba45c5b6ea973e84b5a79cf /example1.py
parent7dd68707124da17bc0de801de4c690be515926ab (diff)
1. add reference
2. fix some error in macs calculate next index 3. add comment
Diffstat (limited to 'example1.py')
-rw-r--r--example1.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/example1.py b/example1.py
new file mode 100644
index 0000000..c7629e8
--- /dev/null
+++ b/example1.py
@@ -0,0 +1,10 @@
+from vrptw_base import VrptwGraph
+from multiple_ant_colony_system import MultipleAntColonySystem
+
+
+if __name__ == '__main__':
+ file_path = './solomon-100/c101.txt'
+ graph = VrptwGraph(file_path)
+
+ macs = MultipleAntColonySystem(graph)
+ macs.run_multiple_ant_colony_system()