Esempio n. 1
0
        public void GEMOptimizerCancel()
        {
            GEMOptimizer gem = new GEMOptimizer();

            GEMParams param = new GEMParams(1, 5, 1000 * 1000, 0.6, 10);

            bool error = GeneralOptimizerTests.TestCancel(gem, param);

            Assert.False(error);
        }
        public void BBBCTestCancel()
        {
            BBBCOptimizer bb = new BBBCOptimizer();

            BBBCParams param = new BBBCParams(10, 1000 * 1000, 0.4, 0.3);

            bool error = GeneralOptimizerTests.TestCancel(bb, param);

            Assert.False(error);
        }
        public void FWOptimizerTestCancel()
        {
            FWOptimizer fw = new FWOptimizer();

            // Distance is Manhattan distance.
            FWParams param = new FWParams(10, 1000 * 1000, 3, 5, 10, 40);

            bool error = GeneralOptimizerTests.TestCancel(fw, param);

            Assert.False(error);
        }