January 2019
Intermediate to advanced
236 pages
5h 41m
English
In the previous chapter, the paper bag contained a cannon, and you used a nature-inspired genetic algorithm to fire cannonballs out of a paper bag. In this chapter, the bag contains particles which can move independently, follow one another, or swarm as a group. A single particle moving at random might end up outside a paper bag. Several particles moving in a cluster are likely to stay in one clump but might escape if they are each allowed to have some random movement. Several particles following one another but guided via a fitness function will escape the paper bag. These particles will use a particle swarm optimization (PSO) to discover how to escape. By sharing information, they gradually move ...
Read now
Unlock full access