예제 #1
0
        private void SetUp()
        {
            // Evaluate initial simplex
            for (var i = 0; i <= Number_Of_Dimensions; i++)
            {
                var fitness = Worst_Fitness - (i * Step_Size);

                if (i == Number_Of_Dimensions)
                {
                    bestFitness = fitness;
                }

                var newInd = optimiser.GetNextToEvaluate(1).ElementAt(0);
                Helpers.EvaluateIndividual(newInd, fitness);
                optimiser.ReInsert(new[] { newInd });
            }
        }