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 booleanisMinFound()the convergence criteriondoublesearch(double lower, double upper)Search for a minimum within the interval [lower, upper].protected doublexnext()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.SolutionSearch 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.Solutionthe convergence criterion- Specified by:
isMinFoundin classBracketSearchMinimizer.Solution- Returns:
trueif the current min value is considered to have converged within a threshold
-
xnext
protected double xnext()
Description copied from class:BracketSearchMinimizer.SolutionCompute the next best estimate within the bracketing interval. A particular univariate minimization algorithm implements the logic in this method.- Specified by:
xnextin classBracketSearchMinimizer.Solution- Returns:
- the next best guess of the minimizer
-
-