From ba461f7f88f623017f5b9f537800e1484d963d53 Mon Sep 17 00:00:00 2001 From: JonZhao <1044264932@qq.com> Date: Wed, 29 May 2019 16:19:56 +0800 Subject: add example --- README.md | 8 ++++++++ example1.py | 2 +- image/c101-example.gif | Bin 0 -> 133080 bytes 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 image/c101-example.gif diff --git a/README.md b/README.md index 16d2a4a..ad2924b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ # VRPTW-ACO-python A **python** implementation of a **ant colony optimization** based solution to **Vehicle Routing Problem with Time Windows**. +## Example + +``` +

+ +

+``` + ## Reference 1. `Gambardella L M, Taillard É, Agazzi G. Macs-vrptw: A multiple colony system for vehicle routing problems with time windows[C]//New ideas in optimization. 1999.` \ No newline at end of file diff --git a/example1.py b/example1.py index 370a5d7..dd1a3ec 100644 --- a/example1.py +++ b/example1.py @@ -3,7 +3,7 @@ from multiple_ant_colony_system import MultipleAntColonySystem if __name__ == '__main__': - file_path = './solomon-100/rc101.txt' + file_path = './solomon-100/c101.txt' ants_num = 10 beta = 2 q0 = 0.1 diff --git a/image/c101-example.gif b/image/c101-example.gif new file mode 100644 index 0000000..8784070 Binary files /dev/null and b/image/c101-example.gif differ -- cgit v1.2.3