Пример #1
0
    private static string buildGenotypeInfo(int generation, double averageEvaluation, double averageFitness, Genotype bestGenotype)
    {
        string info = generation + " ";

        info += averageFitness + " " + bestGenotype.Fitness + " " + averageEvaluation + " " + bestGenotype.Evaluation;

        foreach (double d in bestGenotype.GetWeightCopy())
        {
            info += " " + d;
        }

        return(info + "\n");
    }