public GaDualSorter(GenomePool <GenomeSorterDual> genomePoolDualSorter, SortablePool sortablePool, IRando randy) { SortablePool = sortablePool; GenomePoolDualSorter = genomePoolDualSorter; SorterPool = new SorterPool(id: Guid.NewGuid(), sorters: GenomePoolDualSorter.SelectMany( gds => gds.MakePhenotypes(randy, 1))); }
public static void SetBestSorterPool(this Dictionary <string, object> dictionary, SorterPool bestSorterPool) { dictionary[kBestSorterPool] = bestSorterPool; }
public static void SetSorterPool(this Dictionary <string, object> dictionary, SorterPool sorterPool) { dictionary[kSorterPool] = sorterPool; }