January 2019
Intermediate to advanced
236 pages
5h 41m
English
In pseudo-code your ACO works like this:
| | for a while |
| | create paths |
| | update pheromones |
| | daemon actions: e.g. display results |
You will start your ants somewhere along the bottom of the bag, let them walk around grid points, and then return home once they find the food above the top of the bag. The ants can start anywhere along the bottom of the bag, or in the same place. You can either control this by a checkbox from the HTML or hard-code one of these options. The specifics don’t make a difference to the overall feel of the algorithm, but the choice can affect how long your ants take to find good paths.
You need to make several decisions:
Read now
Unlock full access