BaseUnivariateSolver<UnivariateFunction>
, UnivariateSolver
public class BisectionSolver extends AbstractUnivariateSolver
The function should be continuous but not necessarily smooth.
Constructor | Description |
---|---|
BisectionSolver() |
Construct a solver with default accuracy (1e-6).
|
BisectionSolver(double absoluteAccuracy) |
Construct a solver.
|
BisectionSolver(double relativeAccuracy,
double absoluteAccuracy) |
Construct a solver.
|
Modifier and Type | Method | 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
getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMaxEvaluations, getRelativeAccuracy, solve, solve, solve
public BisectionSolver()
public BisectionSolver(double absoluteAccuracy)
absoluteAccuracy
- Absolute accuracy.public BisectionSolver(double relativeAccuracy, double absoluteAccuracy)
relativeAccuracy
- Relative accuracy.absoluteAccuracy
- Absolute accuracy.protected double doSolve() throws MathIllegalStateException
doSolve
in class BaseAbstractUnivariateSolver<UnivariateFunction>
MathIllegalStateException
- if the maximal number of evaluations
is exceeded.Copyright © 2016–2018 Hipparchus.org. All rights reserved.