public void initializePopulation(int size, MastermindFitnessCalculator mastermindFitnessCalculator)
 {
     for (int i = 0; i < size; i++)
     {
         individuals.Add(new Individual(mastermindFitnessCalculator).generateIndividual());
     }
 }
Exemple #2
0
 public Individual(MastermindFitnessCalculator mastermindFitnessCalculator)
 {
     this.mastermindFitnessCalculator = mastermindFitnessCalculator;
 }
Exemple #3
0
 public GeneticAlgorithm(MastermindFitnessCalculator mastermindFitnessCalculator)
 {
     this.mastermindFitnessCalculator = mastermindFitnessCalculator;
 }