Currently, the generate_population() function can generate duplicate strategies. There is no method in place to ensure that strategies are unique. This must be implemented.
Things to note:
To compare strategies, we may need to implement __eq__() and __ne__() for the interface
If the population size requested is smaller than the total number of unique strategies, an error should be displayed
Currently, the
generate_population()
function can generate duplicate strategies. There is no method in place to ensure that strategies are unique. This must be implemented.Things to note:
__eq__()
and__ne__()
for the interface