Esempio n. 1
0
 public GAMachine(Population population, ISelection selection, ICrossover crossover, IMutation mutation, Fitness fitness, StopCondition stopCondition, double crossoverProbability = DefaultCrossoverProbability, double mutationProbability = DefaultMutationProbability)
 {
     _population           = population;
     _selection            = selection;
     _crossover            = crossover;
     _mutation             = mutation;
     _adjustment           = new BestReservationAdjustment();
     _fitness              = fitness;
     _stopCondition        = stopCondition;
     _crossoverProbability = crossoverProbability;
     _mutationProbability  = mutationProbability;
     _population.ReInit();
 }
Esempio n. 2
0
 public void Reset()
 {
     _population.ReInit();
 }