diff options
| author | JonZhao <[email protected]> | 2019-05-29 11:21:19 +0800 |
|---|---|---|
| committer | JonZhao <[email protected]> | 2019-05-29 11:21:19 +0800 |
| commit | 8d459d62b4deed1212f613cad1967b36ca385d5a (patch) | |
| tree | 7e34f4374c753d637ba45c5b6ea973e84b5a79cf /example1.py | |
| parent | 7dd68707124da17bc0de801de4c690be515926ab (diff) | |
| download | VRPTW-ACO-python-8d459d62b4deed1212f613cad1967b36ca385d5a.tar.gz VRPTW-ACO-python-8d459d62b4deed1212f613cad1967b36ca385d5a.tar.bz2 VRPTW-ACO-python-8d459d62b4deed1212f613cad1967b36ca385d5a.zip | |
1. add reference
2. fix some error in macs calculate next index
3. add comment
Diffstat (limited to 'example1.py')
| -rw-r--r-- | example1.py | 10 |
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() |
