Ejemplo n.º 1
0
 public void ZakharovEvaluateFunctionTest() {
   ZakharovEvaluator target = new ZakharovEvaluator();
   RealVector point = null;
   double expected = target.BestKnownQuality;
   double actual;
   for (int dimension = target.MinimumProblemSize; dimension <= System.Math.Min(10, target.MaximumProblemSize); dimension++) {
     point = target.GetBestKnownSolution(dimension);
     actual = target.Evaluate(point);
     Assert.AreEqual(expected, actual);
   }
 }
Ejemplo n.º 2
0
        public void ZakharovEvaluateFunctionTest()
        {
            ZakharovEvaluator target   = new ZakharovEvaluator();
            RealVector        point    = null;
            double            expected = target.BestKnownQuality;
            double            actual;

            for (int dimension = target.MinimumProblemSize; dimension <= System.Math.Min(10, target.MaximumProblemSize); dimension++)
            {
                point  = target.GetBestKnownSolution(dimension);
                actual = target.Evaluate(point);
                Assert.AreEqual(expected, actual);
            }
        }