Skip to content

Error in pheromne update stepΒ #10

@rutvikbaxi

Description

@rutvikbaxi

Firstly thanks a lot for the code! It was quite helpful.
In the pheromone update step, it is written as
self.pheromone[move] += 1.0 / self.distances[move]

but according to the formula it should be
self.pheromone[move] += 1.0 / dist

It is the inverse of the total path distance of that route taken by the ant which is the dist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions