Skip to content

Fix bugs#13

Open
Den-is-me wants to merge 1 commit intorishal-hurbans:mainfrom
Den-is-me:master
Open

Fix bugs#13
Den-is-me wants to merge 1 commit intorishal-hurbans:mainfrom
Den-is-me:master

Conversation

@Den-is-me
Copy link

update_pheromones: fixed a bug. Previously, the method updated all pheromones with the same value, resulting in identical pheromones.
visit_random_attraction: fixed a bug. Previously, the method chose from a range instead of from possible attractions, resulting in a chance to return to a previously visited attraction.
visit_probabilistic_attraction: minor fix based on the correct probability function.
roulette_wheel_selection: minor optimization.

update_pheromones: fixed a bug. Previously, the method updated all pheromones with the same value, resulting in identical pheromones.
visit_random_attraction: fixed a bug. Previously, the method chose from a range instead of from possible attractions, resulting in a chance to return to a previously visited attraction.
visit_probabilistic_attraction: minor fix based on the correct probability function.
roulette_wheel_selection: minor optimization.
Copy link

@RahulVadisetty91 RahulVadisetty91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i4

ALPHA is defined twice, with the second value (5) overwriting the first one (4). Remove the redundant definition. Decide on one value, likely ALPHA = 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants