Class NelderMeadMinimizer.Solution
- java.lang.Object
-
- dev.nm.solver.multivariate.unconstrained.c2.NelderMeadMinimizer.Solution
-
- All Implemented Interfaces:
IterativeMethod<Vector>
,IterativeSolution<Vector>
,MinimizationSolution<Vector>
- Enclosing class:
- NelderMeadMinimizer
public class NelderMeadMinimizer.Solution extends Object implements IterativeSolution<Vector>
This is the solution to an optimization problem by the Nelder-Mead method.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableVector
minimizer()
Get the minimizer (solution) to the minimization problem.double
minimum()
Get the (approximate) minimum found.Vector
search(Vector... simplex)
Perform a Nelder-Mead search from an initial simplex.void
setInitials(Vector... simplex)
Supply the starting points for the search.Boolean
step()
Do the next iteration.
-
-
-
Method Detail
-
minimum
public double minimum()
Description copied from interface:MinimizationSolution
Get the (approximate) minimum found.- Specified by:
minimum
in interfaceMinimizationSolution<Vector>
- Returns:
- the (approximate) minimum found
-
minimizer
public ImmutableVector minimizer()
Description copied from interface:MinimizationSolution
Get the minimizer (solution) to the minimization problem.- Specified by:
minimizer
in interfaceMinimizationSolution<Vector>
- Returns:
- the minimizer
-
search
public Vector search(Vector... simplex)
Perform a Nelder-Mead search from an initial simplex.- Specified by:
search
in interfaceIterativeMethod<Vector>
- Parameters:
simplex
- the initial simplex for the search- Returns:
- the optimal point
-
setInitials
public void setInitials(Vector... simplex)
Description copied from interface:IterativeMethod
Supply the starting points for the search. This can also initialize the state of the algorithm for a new search.- Specified by:
setInitials
in interfaceIterativeMethod<Vector>
- Parameters:
simplex
- the initial guesses
-
step
public Boolean step()
Description copied from interface:IterativeMethod
Do the next iteration.- Specified by:
step
in interfaceIterativeMethod<Vector>
- Returns:
- the information about this step
-
-