Package org.apache.commons.math.optimization.univariate

Examples of org.apache.commons.math.optimization.univariate.BracketFinder


    int maxIterations = 100;
    int retries = 5;

    for (int i = 1; i <= retries && !interrupt; i++) {
      try {
        BracketFinder bracketFinder = new BracketFinder(growthLimit,
            maxIterations);

        bracketFinder.search(function, goal, min, max);

        BrentOptimizer extremaFinder = new BrentOptimizer();

        extremeTime = extremaFinder.optimize(function, goal,
            bracketFinder.getLo(), bracketFinder.getHi(),
            bracketFinder.getMid())
            + zeroPoint; // TODO: or - zeroPoint?

        extremeMag = extremaFinder.getFunctionValue();

      } catch (FunctionEvaluationException e) {
View Full Code Here

TOP

Related Classes of org.apache.commons.math.optimization.univariate.BracketFinder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.