protected EngineBase(EvolutionParameters evolutionParameters, IGenericFactory <Solution> solutionsFactory, PopulationGeneratorBase populationGenerator, MutatorBase objectMutator, MutatorBase stdDeviationsMutator, MutationRuleSupervisorBase mutationRuleSupervisor, ParentsSelectorBase parentsSelector, SurvivorsSelectorBase survivorsSelector, Statistics statistics, Stopwatch stoper) { Parameters = evolutionParameters; SolutionsFactory = solutionsFactory; PopulationGenerator = populationGenerator; ObjectMutator = objectMutator; StdDeviationsMutator = stdDeviationsMutator; MutationRuleSupervisor = mutationRuleSupervisor; ParentsSelector = parentsSelector; SurvivorsSelector = survivorsSelector; Statistics = statistics; Stoper = stoper; BasePopulation = new Solution[evolutionParameters.BasePopulationSize]; OffspringPopulation = new Solution[evolutionParameters.OffspringPopulationSize]; EvolutionStepsSimple = new List <Solution>(evolutionParameters.NumberOfGenerations); EvolutionSteps = new Dictionary <int, EvolutionStep>(evolutionParameters.NumberOfGenerations); }
public CmEngineWithoutRecombination(EvolutionParameters evolutionParameters, IGenericFactory <Solution> solutionsFactory, PopulationGeneratorBase populationGenerator, MutatorBase objectMutator, MutatorBase stdDeviationsMutator, MutationRuleSupervisorBase mutationRuleSupervisor, ParentsSelectorBase parentsSelector, SurvivorsSelectorBase survivorsSelector, Statistics statistics, Stopwatch stoper, MutatorBase rotationsMutator) : base(evolutionParameters, solutionsFactory, populationGenerator, objectMutator, stdDeviationsMutator, mutationRuleSupervisor, parentsSelector, survivorsSelector, statistics, stoper) { RotationsMutator = rotationsMutator; }