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

Examples of org.apache.commons.math.optimization.univariate.BrentOptimizer.optimize()


                          Function fn, double lower, double upper, double tol) {

    BrentOptimizer optimizer = new BrentOptimizer();
    optimizer.setAbsoluteAccuracy(tol);
    try {
      return optimizer.optimize(new UnivariateRealClosure(context, rho, fn), GoalType.MINIMIZE, lower, upper);
    } catch (MaxIterationsExceededException e) {
      throw new EvalException("maximum iterations reached", e);
    } catch (FunctionEvaluationException e) {
      throw new EvalException(e);
    }
View Full Code Here


        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();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.