Ejemplo n.º 1
0
 public GeneticAlgoritm(
     IMutatorPopulation <DomainType> mutator,
     IFunction <DomainType[, ], float[]> fitness_function,
     int iteration_count,
     int population_count,
     int retention_count) :
     this(new RNGCryptoServiceProvider(), mutator, fitness_function, iteration_count, population_count, retention_count)
 {
 }
Ejemplo n.º 2
0
 public GeneticAlgoritm(
     RandomNumberGenerator random,
     IMutatorPopulation <DomainType> mutator,
     IFunction <DomainType[, ], float[]> fitness_function,
     int iteration_count,
     int population_count,
     int retention_count)
 {
     d_random           = random;
     d_mutator          = mutator;
     d_fitness_function = fitness_function;
     IterationCount     = iteration_count;
     PopulationCount    = population_count;
     RetentionCount     = retention_count;
 }