예제 #1
0
 public Experiment()
 {
     Evaluator          = new OneToOneCharEvaluator();
     CrossoverHandler   = new AlphaBetaCrossoverHandler();
     PopulationSize     = 50;
     PercentToCrossover = 0.5;
     PercentToMutate    = 0.5;
     MutationIntensity  = 0.5; // 0 is no mutation, 1 is infinite mutation (don't do this)
     ChildPerPair       = 5;
     TargetString       = "A quick brown fox jumps over the lazy dog!";
     CrossoverMethod    = new DoubleSplitCrossoverMethod();
 }
예제 #2
0
 public Experiment()
 {
     Evaluator = new OneToOneCharEvaluator();
     CrossoverHandler = new AlphaBetaCrossoverHandler();
     PopulationSize = 50;
     PercentToCrossover = 0.5;
     PercentToMutate = 0.5;
     MutationIntensity = 0.5; // 0 is no mutation, 1 is infinite mutation (don't do this)
     ChildPerPair = 5;
     TargetString = "A quick brown fox jumps over the lazy dog!";
     CrossoverMethod = new DoubleSplitCrossoverMethod();
 }