public class NewtonSolver extends AbstractDifferentiableUnivariateSolver
The function should be continuous but not necessarily smooth.
| Constructor and Description |
|---|
NewtonSolver()
Construct a solver.
|
NewtonSolver(double absoluteAccuracy)
Construct a solver.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
doSolve()
Method for implementing actual optimization algorithms in derived
classes.
|
double |
solve(int maxEval,
DifferentiableUnivariateFunction f,
double min,
double max)
Find a zero near the midpoint of
min and max. |
computeDerivativeObjectiveValue, setupcomputeObjectiveValue, getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMax, getMaxEvaluations, getMin, getRelativeAccuracy, getStartValue, incrementEvaluationCount, isBracketing, isSequence, solve, solve, verifyBracketing, verifyInterval, verifySequenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMaxEvaluations, getRelativeAccuracy, solve, solvepublic NewtonSolver()
public NewtonSolver(double absoluteAccuracy)
absoluteAccuracy - Absolute accuracy.public double solve(int maxEval,
DifferentiableUnivariateFunction f,
double min,
double max)
min and max.solve in interface BaseUnivariateSolver<DifferentiableUnivariateFunction>solve in class BaseAbstractUnivariateSolver<DifferentiableUnivariateFunction>f - Function to solve.min - Lower bound for the interval.max - Upper bound for the interval.maxEval - Maximum number of evaluations.TooManyEvaluationsException - if the maximum evaluation count is exceeded.NumberIsTooLargeException - if min >= max.protected double doSolve()
doSolve in class BaseAbstractUnivariateSolver<DifferentiableUnivariateFunction>Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.