From 5296f1068e42633790c64b40ff134fc08deb9b80 Mon Sep 17 00:00:00 2001 From: JonZhao <1044264932@qq.com> Date: Sun, 26 May 2019 11:03:18 +0800 Subject: minor updation --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 90bc361..4008dac 100644 --- a/main.py +++ b/main.py @@ -145,7 +145,7 @@ class VrptwAco: current_ind = self.best_path[0] for next_ind in self.best_path[1:]: - self.pheromone_mat[current_ind][next_ind] += self.Q/self.best_path_distance + self.pheromone_mat[current_ind][next_ind] += self.rho/self.best_path_distance current_ind = next_ind def stochastic_accept(self, index_to_visit, transition_prob): @@ -171,7 +171,7 @@ class VrptwAco: if __name__ == '__main__': - file_path = './solomon-100/r101.txt' + file_path = './solomon-100/c101.txt' graph = VrptwGraph(file_path) vrptw = VrptwAco(graph) -- cgit v1.2.3