Your Mission: Beekeeping
Your bees will have different roles. Some bees will wait at home, some will scout around exploring, and other bees will work to collect pollen from a food source. You can plant food at specific points in space, or put food anywhere to keep things simple. Pretend you dropped off better food near the top of the bag and the best food outside of the bag. You’ll encode the quality of a food source as a fitness function, encouraging bees to find better food sources. You get an optimal solution to a problem when the bees find the best food source. If better food is higher up and the best food is outside the bag, your bees will learn to move up, eventually escaping the paper bag. The position of a food source encodes a solution ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access