public class GoldenSectionLineSearch extends Object implements LineSearcher
Constructor and Description |
---|
GoldenSectionLineSearch(boolean geometric) |
GoldenSectionLineSearch(boolean geometric,
double tol,
double low,
double high) |
GoldenSectionLineSearch(boolean geometric,
double tol,
double low,
double high,
boolean verbose) |
GoldenSectionLineSearch(double tol,
double low,
double high) |
GoldenSectionLineSearch(double tol,
double low,
double high,
boolean verbose) |
Modifier and Type | Method and Description |
---|---|
void |
discretizeCompute(java.util.function.Function<Double,Double> function,
int numPoints,
double low,
double high) |
void |
dumpMemory()
dump the
|
static void |
main(String[] args) |
double |
minimize(java.util.function.Function<Double,Double> function)
Attempts to find an unconstrained minimum of the objective
function starting at initial , within
functionTolerance . |
double |
minimize(java.util.function.Function<Double,Double> function,
double tol,
double low,
double high) |
public GoldenSectionLineSearch(double tol, double low, double high)
public GoldenSectionLineSearch(double tol, double low, double high, boolean verbose)
public GoldenSectionLineSearch(boolean geometric)
public GoldenSectionLineSearch(boolean geometric, double tol, double low, double high)
public GoldenSectionLineSearch(boolean geometric, double tol, double low, double high, boolean verbose)
public double minimize(java.util.function.Function<Double,Double> function, double tol, double low, double high)
public double minimize(java.util.function.Function<Double,Double> function)
LineSearcher
function
starting at initial
, within
functionTolerance
.minimize
in interface LineSearcher
function
- the objective functionpublic void dumpMemory()
public void discretizeCompute(java.util.function.Function<Double,Double> function, int numPoints, double low, double high)
public static void main(String[] args)