Пример #1
0
    public void EvaluationTest()
    {
        Vector <float> externalEvaluations = Vector <float> .Build.DenseOfArray(new float[2] {
            1.0f, 0.0f
        });

        geneSeed.Evaluation(externalEvaluations, "max");
        Assert.AreEqual(0, geneSeed.GetBestIndividualIndex());
        geneSeed.Evaluation(externalEvaluations, "min");
    }