UsingStatistics <TIndividual, TGeneStructure, TGene>( this IEvolutionaryAlgorithm <TIndividual, TGeneStructure, TGene> algo, IEvolutionaryStatistics <TIndividual, TGeneStructure, TGene> statistics) where TIndividual : IIndividual <TGeneStructure, TGene> where TGeneStructure : ICloneable { algo.Statistics = statistics; return(algo); }
public BasicEvolutionaryStatistics(IEvolutionaryStatistics <TIndividual, TGeneStructure, TGene> other) { StartTime = other.StartTime; EndTime = other.EndTime; Best = (TIndividual)other.Best?.Clone(); Current = (TIndividual)other.Current?.Clone(); Previous = (TIndividual)other.Previous?.Clone(); Parameters = (IParameters)other.Parameters.Clone(); StagnantGeneration = other.StagnantGeneration; Generations = other.Generations; }
public void Initialize() { _statistics = Algorithm.Statistics; _parameters = Algorithm.Parameters; }
public void Initialize() { _parameters = Algorithm.Parameters; _statistics = Algorithm.Statistics; _actualLambda = _parameters.Lambda; }