|
@@ -112,8 +112,8 @@ class Ant:
|
|
|
self.Sequence.append(index)
|
|
|
|
|
|
# update the local pheromone
|
|
|
- update = (1.0 - self.Configuration.propagationRatio) * self.PheromoneMatrix[self.Sequence[-2], self.Sequence[-1]]
|
|
|
- update += self.Configuration.propagationRatio * self.Configuration.ThetaZero
|
|
|
+ update = (1.0 - self.Configuration.PropagationRatio) * self.PheromoneMatrix[self.Sequence[-2], self.Sequence[-1]]
|
|
|
+ update += self.Configuration.PropagationRatio * self.Configuration.ThetaZero
|
|
|
self.PheromoneMatrix[self.Sequence[-2], self.Sequence[-1]] = max(self.Configuration.ThetaZero, update)
|
|
|
|
|
|
# validate that nothing went wrong
|