diff --git a/README.md b/README.md index 26a647e..1b0324c 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Then we define how energy is computed (also known as the *objective function*): """Calculates the length of the route.""" e = 0 for i in range(len(self.state)): - e += self.distance(cities[self.state[i - 1]], + e += self.distance_matrix(cities[self.state[i - 1]], cities[self.state[i]]) return e ```