示例#1
0
 public void nestedOptimizationTest()
 {
     //("Testing nested optimizations...");
     OptimizationBasedCostFunction optimizationBasedCostFunction = new OptimizationBasedCostFunction();
     NoConstraint constraint = new NoConstraint();
     Vector initialValues = new Vector(1, 0.0);
     Problem problem = new Problem(optimizationBasedCostFunction, constraint, initialValues);
     LevenbergMarquardt optimizationMethod = new LevenbergMarquardt();
     //Simplex optimizationMethod(0.1);
     //ConjugateGradient optimizationMethod;
     //SteepestDescent optimizationMethod;
     EndCriteria endCriteria = new EndCriteria(1000, 100, 1e-5, 1e-5, 1e-5);
     optimizationMethod.minimize(problem, endCriteria);
 }
示例#2
0
        public void nestedOptimizationTest()
        {
            //("Testing nested optimizations...");
            OptimizationBasedCostFunction optimizationBasedCostFunction = new OptimizationBasedCostFunction();
            NoConstraint       constraint         = new NoConstraint();
            Vector             initialValues      = new Vector(1, 0.0);
            Problem            problem            = new Problem(optimizationBasedCostFunction, constraint, initialValues);
            LevenbergMarquardt optimizationMethod = new LevenbergMarquardt();
            //Simplex optimizationMethod(0.1);
            //ConjugateGradient optimizationMethod;
            //SteepestDescent optimizationMethod;
            EndCriteria endCriteria = new EndCriteria(1000, 100, 1e-5, 1e-5, 1e-5);

            optimizationMethod.minimize(problem, endCriteria);
        }