Esempio n. 1
0
 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)));
 }
Esempio n. 2
0
 public static void SetBestSorterPool(this Dictionary <string, object> dictionary, SorterPool bestSorterPool)
 {
     dictionary[kBestSorterPool] = bestSorterPool;
 }
Esempio n. 3
0
 public static void SetSorterPool(this Dictionary <string, object> dictionary, SorterPool sorterPool)
 {
     dictionary[kSorterPool] = sorterPool;
 }