#include <StoppingCriterion.h>


Public Member Functions | |
| virtual bool | Fulfilled (int iter, double value, const double *delta)=0 |
| virtual void | Initialize () |
| Initialize stopping criterion after input and parameters are set. | |
| virtual StoppingCriterion * | New () const =0 |
| Create new copy of this instance. | |
| virtual void | Print (ostream &) const |
| virtual | ~StoppingCriterion () |
| Destructor. | |
Public Member Functions inherited from mirtk::Object | |
| virtual const char * | NameOfClass () const =0 |
| Get name of class, which this object is an instance of. | |
| virtual ParameterList | Parameter () const |
| Get parameter name/value pairs. | |
| bool | Parameter (const ParameterList &) |
| Set parameters from name/value pairs. | |
| virtual bool | Set (const char *name, const char *value) |
| virtual | ~Object () |
| Destructor. | |
Protected Member Functions | |
| StoppingCriterion & | operator= (const StoppingCriterion &) |
| Assignment operator. | |
| StoppingCriterion (const ObjectiveFunction *=NULL) | |
| Constructor. | |
| StoppingCriterion (const LocalOptimizer *) | |
| Constructor. | |
| StoppingCriterion (const StoppingCriterion &) | |
| Copy constructor. | |
Protected Member Functions inherited from mirtk::Object | |
| template<typename... Args> | |
| void | Throw (ErrorType err, const char *func, Args... args) const |
Additional Inherited Members | |
Static Public Member Functions inherited from mirtk::Object | |
| static const char * | NameOfType () |
| Get name of this class type. | |
Static Protected Member Functions inherited from mirtk::Object | |
| template<typename... Args> | |
| static void | ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args) |
Stopping criterion for iterative optimization
Definition at line 37 of file StoppingCriterion.h.
|
pure virtual |
Test stopping criterion
The objective function must be up-to-date when this function is called. This is usually the case anyway because the current objective function value after a change of the parameters must be evaluated before this function is called to be able to provide this value as argument.
false.| [in] | iter | Current number of iterations. |
| [in] | value | Objective function value at current iteration. |
| [in] | delta | Last change of objective function parameters. |
Implemented in mirtk::MinActiveStoppingCriterion, mirtk::InflationStoppingCriterion, and mirtk::EnergyThreshold.
|
virtual |
Print current stopping criterion status / value
This function must be called after Fulfilled, which should update any cached values that are needed by this function to avoid a costly reevaluation of the stopping criterion.
Reimplemented in mirtk::MinActiveStoppingCriterion, mirtk::InflationStoppingCriterion, and mirtk::EnergyThreshold.