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 ...
Get Genetic Algorithms and Machine Learning for Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.