public class GoldenSectionLineSearch extends java.lang.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.DoubleUnaryOperator function,
int numPoints,
double low,
double high) |
void |
dumpMemory()
dump the
<x,y> pairs it computed found |
static void |
main(java.lang.String[] args) |
double |
minimize(java.util.function.DoubleUnaryOperator function)
Attempts to find an unconstrained minimum of the objective
function
starting at initial , within functionTolerance . |
double |
minimize(java.util.function.DoubleUnaryOperator 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.DoubleUnaryOperator function, double tol, double low, double high)
public double minimize(java.util.function.DoubleUnaryOperator function)
LineSearcher
function
starting at initial
, within functionTolerance
.minimize
in interface LineSearcher
function
- the objective functionpublic void dumpMemory()
<x,y>
pairs it computed foundpublic void discretizeCompute(java.util.function.DoubleUnaryOperator function, int numPoints, double low, double high)
public static void main(java.lang.String[] args)