public class GoldenSectionMinimizer1D extends Object implements ScalarMinimizer
| Constructor and Description |
|---|
GoldenSectionMinimizer1D() |
| Modifier and Type | Method and Description |
|---|---|
Double |
minimize(Function<Double,Double> function,
Double startPosition) |
double |
minimize(Function<Double,Double> f,
double lower,
double upper)
Minimize.
|
double |
minimize(Function<Double,Double> f,
double startPosition,
double lower,
double upper) |
public double minimize(Function<Double,Double> f, double startPosition, double lower, double upper)
minimize in interface ScalarMinimizerf - The function to minimize, not nullstartPosition - The start positionlower - The lower boundupper - The upper bound, must be greater than the upper boundpublic double minimize(Function<Double,Double> f, double lower, double upper)
f - the functionlower - the lower boundupper - the upper boundCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.