Module subset

Module subset 

Source

Structsยง

SubSetCodec
A Codec for a subset of items. This is useful for problems where the goal is to find the best subset of items from a larger set of items. The encode function creates a Genotype with a single chromosome of BitGenes where each gene represents an item in the items vector. The decode function creates a Vec<&T> from the Genotype where the Vec contains the items that are selected by the BitGenes - the true genes.