diff options
| author | JonZhao <[email protected]> | 2019-05-27 21:58:28 +0800 |
|---|---|---|
| committer | JonZhao <[email protected]> | 2019-05-27 21:58:28 +0800 |
| commit | 943114101b05f5cb3d4f149c2de4b360f33cb0a7 (patch) | |
| tree | dfac9cae8fe30b313df0aed183276a75da8b9144 /vrptw_base.py | |
| parent | 0e6ebb04fc63498bac25adef14826e305ee1f634 (diff) | |
| download | VRPTW-ACO-python-943114101b05f5cb3d4f149c2de4b360f33cb0a7.tar.gz VRPTW-ACO-python-943114101b05f5cb3d4f149c2de4b360f33cb0a7.tar.bz2 VRPTW-ACO-python-943114101b05f5cb3d4f149c2de4b360f33cb0a7.zip | |
fix some bug
Diffstat (limited to 'vrptw_base.py')
| -rw-r--r-- | vrptw_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vrptw_base.py b/vrptw_base.py index 4c2e7e1..0ce20d9 100644 --- a/vrptw_base.py +++ b/vrptw_base.py @@ -60,7 +60,7 @@ class VrptwGraph: new_graph.heuristic_info_mat = 1 / new_graph.node_dist_mat # 信息素 new_graph.init_pheromone_val = init_pheromone_val - new_graph.pheromone_mat = np.ones((self.node_num, self.node_num)) * self.init_pheromone_val + new_graph.pheromone_mat = np.ones((new_graph.node_num, new_graph.node_num)) * init_pheromone_val return new_graph |
