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 Doubleminimizer()Get the minimizer (solution) to the minimization problem.doubleminimum()Get the (approximate) minimum found.doublesearch(double lower, double upper)Search for a minimum within the interval [lower, upper].doublesearch(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:
searchin 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.SolutionSearch for a minimum within the interval [lower, upper].- Specified by:
searchin 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:MinimizationSolutionGet the (approximate) minimum found.- Specified by:
minimumin interfaceMinimizationSolution<Double>- Returns:
- the (approximate) minimum found
-
minimizer
public Double minimizer()
Description copied from interface:MinimizationSolutionGet the minimizer (solution) to the minimization problem.- Specified by:
minimizerin interfaceMinimizationSolution<Double>- Returns:
- the minimizer
-
-