class OEOpt::OECheckpoint0
The OECheckpoint0 class provides a 'callback' facility to
monitor the progress of an optimization. In addition, the checkpoint
class can also be used to control the termination of an optimization.
This class is specifically for use with optimizers which do not use
gradients.
virtual bool operator()(unsigned int iteration,
unsigned int nvar,
double fval,
const double* var=(double*)0,
unsigned int state = 0)
The operator() method is called by an optimizer at least once
per iteration during an optimization. The variables passed to the
method from the optimizer reflect the current state of an
optimization. The iteration number is reported in the first argument
to the method. The number of variables is given as the second
argument to the method. The most recent function evaluation during
the current iteration is passed as the third argument. The current
set of optimized variables is passed as an array to the fourth
argument. The current state of the optimization is given as one of
the values in the OEOptState namespace.