Structsยง
- SubSet
Codec - 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. Theencode
function creates aGenotype
with a single chromosome ofBitGenes
where each gene represents an item in theitems
vector. Thedecode
function creates aVec<&T>
from theGenotype
where theVec
contains the items that are selected by theBitGenes
- thetrue
genes.