summaryrefslogtreecommitdiffstats
path: root/vrptw_base.py
diff options
context:
space:
mode:
authorJonZhao <[email protected]>2019-05-28 21:06:28 +0800
committerJonZhao <[email protected]>2019-05-28 21:06:28 +0800
commitab4babaa508d27b377e5b5f9f19b05fbef1da85e (patch)
treebae35eb1f89f7f66444b5e382c4db99bdd1f851e /vrptw_base.py
parent1b2e26d831e075770baa8c2c27ef965b1c7743b2 (diff)
downloadVRPTW-ACO-python-ab4babaa508d27b377e5b5f9f19b05fbef1da85e.tar.gz
VRPTW-ACO-python-ab4babaa508d27b377e5b5f9f19b05fbef1da85e.tar.bz2
VRPTW-ACO-python-ab4babaa508d27b377e5b5f9f19b05fbef1da85e.zip
use main thread to draw figure
Diffstat (limited to 'vrptw_base.py')
-rw-r--r--vrptw_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vrptw_base.py b/vrptw_base.py
index ba86128..645b114 100644
--- a/vrptw_base.py
+++ b/vrptw_base.py
@@ -164,8 +164,8 @@ class VrptwGraph:
class PathMessage:
def __init__(self, path, distance):
- self.path = path
- self.distance = distance
+ self.path = copy.deepcopy(path)
+ self.distance = copy.deepcopy(distance)
def get_path_info(self):
return self.path, self.distance