public class BrentMinimizer.Solution extends BracketSearchMinimizer.Solution
Modifier and Type | Method and Description |
---|---|
protected void |
init(double xmin,
double fmin)
Initializes the algorithm states with initial \(x_{min}\) and
\(f_{min}\) before iterations.
|
protected boolean |
isMinFound()
the convergence criterion
|
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].
|
protected void |
updateStates()
Update the bracketing interval and the best min found so far.
|
protected double |
xnext()
Compute the next best estimate within the bracketing interval.
|
isBracketing, minimizer, minimum
public double search(double lower, double initial, double upper)
UnivariateMinimizer.Solution
search
in interface UnivariateMinimizer.Solution
search
in class BracketSearchMinimizer.Solution
lower
- the lower bound for the bracketing interval which contains a minimuminitial
- an initial guessupper
- the upper bound for the bracketing interval which contains a minimumpublic double search(double lower, double upper)
UnivariateMinimizer.Solution
lower
- the lower bound for the bracketing interval which contains a minimumupper
- the upper bound for the bracketing interval which contains a minimumprotected void init(double xmin, double fmin)
BracketSearchMinimizer.Solution
init
in class BracketSearchMinimizer.Solution
xmin
- the initial minimum pointfmin
- the function value of the initial minimum pointprotected boolean isMinFound()
isMinFound
in class BracketSearchMinimizer.Solution
true
if the minimum is foundprotected double xnext()
BracketSearchMinimizer.Solution
xnext
in class BracketSearchMinimizer.Solution
protected void updateStates()
BracketSearchMinimizer.Solution
updateStates
in class BracketSearchMinimizer.Solution
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.