public class RiddersSolver extends AbstractUnivariateSolver
The function should be continuous but not necessarily smooth.
Constructor and Description |
---|
RiddersSolver()
Construct a solver with default accuracy (1e-6).
|
RiddersSolver(double absoluteAccuracy)
Construct a solver.
|
RiddersSolver(double relativeAccuracy,
double absoluteAccuracy)
Construct a solver.
|
Modifier and Type | Method and Description |
---|---|
protected double |
doSolve()
Method for implementing actual optimization algorithms in derived
classes.
|
computeObjectiveValue, getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMax, getMaxEvaluations, getMin, getRelativeAccuracy, getStartValue, incrementEvaluationCount, isBracketing, isSequence, setup, solve, solve, solve, verifyBracketing, verifyInterval, verifySequence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMaxEvaluations, getRelativeAccuracy, solve, solve, solve
public RiddersSolver()
public RiddersSolver(double absoluteAccuracy)
absoluteAccuracy
- Absolute accuracy.public RiddersSolver(double relativeAccuracy, double absoluteAccuracy)
relativeAccuracy
- Relative accuracy.absoluteAccuracy
- Absolute accuracy.protected double doSolve() throws MathIllegalArgumentException, MathIllegalStateException
doSolve
in class BaseAbstractUnivariateSolver<UnivariateFunction>
MathIllegalArgumentException
- if the initial search interval does not bracket
a root and the solver requires it.MathIllegalStateException
- if the maximal number of evaluations
is exceeded.Copyright © 2016–2020 Hipparchus.org. All rights reserved.