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 ImmutableVectorminimizer()Get the minimizer (solution) to the minimization problem.doubleminimum()Get the (approximate) minimum found.Vectorsearch(Vector... simplex)Perform a Nelder-Mead search from an initial simplex.voidsetInitials(Vector... simplex)Supply the starting points for the search.Booleanstep()Do the next iteration.
-
-
-
Method Detail
-
minimum
public double minimum()
Description copied from interface:MinimizationSolutionGet the (approximate) minimum found.- Specified by:
minimumin interfaceMinimizationSolution<Vector>- Returns:
- the (approximate) minimum found
-
minimizer
public ImmutableVector minimizer()
Description copied from interface:MinimizationSolutionGet the minimizer (solution) to the minimization problem.- Specified by:
minimizerin interfaceMinimizationSolution<Vector>- Returns:
- the minimizer
-
search
public Vector search(Vector... simplex)
Perform a Nelder-Mead search from an initial simplex.- Specified by:
searchin interfaceIterativeMethod<Vector>- Parameters:
simplex- the initial simplex for the search- Returns:
- the optimal point
-
setInitials
public void setInitials(Vector... simplex)
Description copied from interface:IterativeMethodSupply the starting points for the search. This can also initialize the state of the algorithm for a new search.- Specified by:
setInitialsin interfaceIterativeMethod<Vector>- Parameters:
simplex- the initial guesses
-
step
public Boolean step()
Description copied from interface:IterativeMethodDo the next iteration.- Specified by:
stepin interfaceIterativeMethod<Vector>- Returns:
- the information about this step
-
-