public class QNMinimizer.Record extends Object
Constructor and Description |
---|
Record(boolean beQuiet,
Function monitor,
double tolerance) |
Record(boolean beQuiet,
Function monitor,
double tolerance,
double eps) |
Record(boolean beQuiet,
Function monitor,
double tolerance,
PrintWriter output) |
Modifier and Type | Method and Description |
---|---|
void |
add(double val,
double[] grad,
double[] x,
int fevals,
double evalScore) |
double[] |
getBest() |
double |
howLong()
Return the time in seconds since this class was created.
|
void |
monitorX(double[] x) |
void |
setEPS(double eps) |
void |
setTOL(double tolerance) |
void |
shutUp() |
void |
start(double val,
double[] grad) |
void |
start(double val,
double[] grad,
double[] x) |
QNMinimizer.eState |
toContinue()
This function checks for convergence through first
order optimality, numerical convergence (i.e., zero numerical
gradient), and also by checking the average improvement.
|
public Record(boolean beQuiet, Function monitor, double tolerance)
public Record(boolean beQuiet, Function monitor, double tolerance, PrintWriter output)
public Record(boolean beQuiet, Function monitor, double tolerance, double eps)
public void setEPS(double eps)
public void setTOL(double tolerance)
public void start(double val, double[] grad)
public void shutUp()
public void start(double val, double[] grad, double[] x)
public void add(double val, double[] grad, double[] x, int fevals, double evalScore)
public void monitorX(double[] x)
public QNMinimizer.eState toContinue()
eState
which tells the state of the optimization routine indicating whether the routine should terminate, and if so why.public double howLong()
public double[] getBest()