Package dev.nm.root.univariate
Class GridSearchMinimizer.Solution
- java.lang.Object
-
- dev.nm.root.univariate.GridSearchMinimizer.Solution
-
- All Implemented Interfaces:
UnivariateMinimizer.Solution
,MinimizationSolution<Double>
- Enclosing class:
- GridSearchMinimizer
public class GridSearchMinimizer.Solution extends Object implements UnivariateMinimizer.Solution
This is the solution to theGridSearchMinimizer
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
minimizer()
Get the minimizer (solution) to the minimization problem.double
minimum()
Get the (approximate) minimum found.double
search(double lower, double upper)
Search for a minimum within the interval [lower, upper].double
search(double lower, double initial, double upper)
Search for a minimum within the interval [lower, upper].
-
-
-
Method Detail
-
search
public double search(double lower, double initial, double upper)
Search for a minimum within the interval [lower, upper].- Specified by:
search
in interfaceUnivariateMinimizer.Solution
- Parameters:
lower
- the lower boundinitial
- not usedupper
- the upper bound- Returns:
- the minimizer found
-
search
public double search(double lower, double upper)
Description copied from interface:UnivariateMinimizer.Solution
Search for a minimum within the interval [lower, upper].- Specified by:
search
in interfaceUnivariateMinimizer.Solution
- 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
-
minimum
public double minimum()
Description copied from interface:MinimizationSolution
Get the (approximate) minimum found.- Specified by:
minimum
in interfaceMinimizationSolution<Double>
- Returns:
- the (approximate) minimum found
-
minimizer
public Double minimizer()
Description copied from interface:MinimizationSolution
Get the minimizer (solution) to the minimization problem.- Specified by:
minimizer
in interfaceMinimizationSolution<Double>
- Returns:
- the minimizer
-
-