Offspring_Pool.py
This class is designed to hold all offspring clusters that are created and perform any requirement for them.
- class Organisms.GA.Offspring_Pool.Offspring_Pool(name, offspring_pool_size)
This class is designed to hold the offspring that are made during the Organisms program.
- Parameters:
name (str.) – The name of the Offspring_Pool. The names of all the collections should be different to prevent confusion, but this shouldn’t affect how this program works.
offspring_pool_size (int) – The maximum number of clusters in the collection
- clean()
Remove all the clusters in the collection.
- sort_by_fitness()
Sort the offspring in the Offspring_Pool by fitness