static void TestRandomSearch() { var tester = new RealTester(); Assert.True(tester.Check( RandomSearch.CreateFixedStepRandomSearch(radius: (1.0 * r), maxTime: 1 * oneMin), RandomSearch.CreateFixedStepRandomSearch(radius: (0.5 * r), maxTime: 2 * oneMin), RandomSearch.CreateFixedStepRandomSearch(radius: (0.1 * r), maxTime: 5 * oneMin))); }
static void TestRandomSearch() { var tester = new RealTester(); Assert.True(tester.Check( DifferentialEvolution.CreateDifferentialEvolution(1 * populationSize, weightingFactor, crossoverRate, 1 * oneMin), DifferentialEvolution.CreateDifferentialEvolution(5 * populationSize, weightingFactor, crossoverRate, 3 * oneMin), DifferentialEvolution.CreateDifferentialEvolution(10 * populationSize, weightingFactor, crossoverRate, 5 * oneMin))); }