Exemplo n.º 1
0
 public Evolver(IList<BaseChromosomeType> chromosomes, int? seed, IGeneValidator geneValidator)
 {
     _chromosomeTypes = chromosomes;
     _random = seed.HasValue ? new Random(seed.Value) : new Random();
     _geneValidator = geneValidator;
 }
Exemplo n.º 2
0
 public Evolver(IList <BaseChromosomeType> chromosomes, int?seed, IGeneValidator geneValidator)
 {
     _chromosomeTypes = chromosomes;
     _random          = seed.HasValue ? new Random(seed.Value) : new Random();
     _geneValidator   = geneValidator;
 }