public ScheduleDNA(IRandomSlotsGenerator slotsGenerator, IFitnessCalculator fitnessCalculator, Random random, bool shouldInitGenes = true, int slotsCount = 80) { _slotsGenerator = slotsGenerator; _fitnessCalculator = fitnessCalculator; _random = random; _slotsCount = slotsCount; Genes = shouldInitGenes ? _slotsGenerator.GetRandomFilledSlots() : new List <Slot>(slotsCount); }
public SchedulePopulationGenerator(IRandomSlotsGenerator slotsGenerator, IFitnessCalculator fitnessCalculator, Random random) { _slotsGenerator = slotsGenerator; _fitnessCalculator = fitnessCalculator; _random = random; }