Exemplo n.º 1
0
 internal GeneticAlgorithm(GeneticAlgorithmBuilder <T> builder)
 {
     MutationRate = builder.MutationRate;
     Mutator      = builder.Mutator;
     CrossOver    = builder.CrossOver;
     Killer       = builder.Killer;
     State        = builder.Population;
 }
 internal GeneticAlgorithm(GeneticAlgorithmBuilder <V> builder)
 {
     Generations  = builder.Generations;
     Population   = builder.Population;
     Evaluator    = builder.FitnessEvaluator;
     MutationRate = builder.MutationRate;
     Mutator      = builder.Mutator;
     CrossOver    = builder.CrossOver;
     Selector     = builder.Selector;
     Killer       = builder.Killer;
     Solution     = builder.Solution;
 }