Exemple #1
0
 internal void SetState(PopulationState populationState)
 {
     this.PopulationSize        = populationState.PopulationSize;
     this.ChromosomeLength      = populationState.ChromosomeLength;
     this.EvaluateInParallel    = populationState.EvaluateInParallel;
     this.ReEvaluateAll         = populationState.ReEvaluateAll;
     this.ParentSelectionMethod = populationState.ParentSelectionMethod;
     this.LinearlyNormalised    = populationState.LinearlyNormalised;
 }
Exemple #2
0
        internal static PopulationState GetState(GAF.Population population)
        {
            var state = new PopulationState();

            state.EvaluateInParallel    = population.EvaluateInParallel;
            state.ReEvaluateAll         = population.ReEvaluateAll;
            state.ParentSelectionMethod = (Api.ParentSelectionMethod)population.ParentSelectionMethod;
            state.LinearlyNormalised    = population.LinearlyNormalised;
            state.PopulationSize        = population.PopulationSize;
            state.ChromosomeLength      = population.ChromosomeLength;
            return(state);
        }
Exemple #3
0
        internal PopulationState GetState()
        {
            var state = new PopulationState();

            state.EvaluateInParallel    = this.EvaluateInParallel;
            state.ReEvaluateAll         = this.ReEvaluateAll;
            state.ParentSelectionMethod = this.ParentSelectionMethod;
            state.LinearlyNormalised    = this.LinearlyNormalised;
            state.PopulationSize        = this.PopulationSize;
            state.ChromosomeLength      = this.ChromosomeLength;
            return(state);
        }