Class GoldenMinimizer.Solution
- java.lang.Object
-
- dev.nm.root.univariate.bracketsearch.BracketSearchMinimizer.Solution
-
- dev.nm.root.univariate.bracketsearch.GoldenMinimizer.Solution
-
- All Implemented Interfaces:
UnivariateMinimizer.Solution
,MinimizationSolution<Double>
- Enclosing class:
- GoldenMinimizer
public class GoldenMinimizer.Solution extends BracketSearchMinimizer.Solution
This is the solution to a Golden section univariate optimization.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isMinFound()
the convergence criteriondouble
search(double lower, double upper)
Search for a minimum within the interval [lower, upper].protected double
xnext()
Compute the next best estimate within the bracketing interval.-
Methods inherited from class dev.nm.root.univariate.bracketsearch.BracketSearchMinimizer.Solution
init, isBracketing, minimizer, minimum, search, updateStates
-
-
-
-
Method Detail
-
search
public double search(double lower, double upper)
Description copied from interface:UnivariateMinimizer.Solution
Search for a minimum within the interval [lower, upper].- Parameters:
lower
- the lower bound for the bracketing interval which contains a minimumupper
- the upper bound for the bracketing interval which contains a minimum- Returns:
- an approximate minimizer
-
isMinFound
protected boolean isMinFound()
Description copied from class:BracketSearchMinimizer.Solution
the convergence criterion- Specified by:
isMinFound
in classBracketSearchMinimizer.Solution
- Returns:
true
if the current min value is considered to have converged within a threshold
-
xnext
protected double xnext()
Description copied from class:BracketSearchMinimizer.Solution
Compute the next best estimate within the bracketing interval. A particular univariate minimization algorithm implements the logic in this method.- Specified by:
xnext
in classBracketSearchMinimizer.Solution
- Returns:
- the next best guess of the minimizer
-
-