bpp-core3
3.0.0
|
Partial implementation of the OptimizationStopCondition interface. More...
#include <Bpp/Numeric/Function/OptimizationStopCondition.h>
Public Member Functions | |
AbstractOptimizationStopCondition (const OptimizerInterface *optimizer) | |
AbstractOptimizationStopCondition (const OptimizerInterface *optimizer, double tolerance) | |
AbstractOptimizationStopCondition (const OptimizerInterface *optimizer, int burnin) | |
AbstractOptimizationStopCondition (const OptimizerInterface *optimizer, double tolerance, int burnin) | |
AbstractOptimizationStopCondition (const AbstractOptimizationStopCondition &aosc) | |
AbstractOptimizationStopCondition & | operator= (const AbstractOptimizationStopCondition &aosc) |
virtual | ~AbstractOptimizationStopCondition () |
const OptimizerInterface * | getOptimizer () const |
void | setOptimizer (const OptimizerInterface *optimizer) |
Set the optimizer attached to this instance. More... | |
void | setTolerance (double tolerance) |
Set the tolerance parameter. More... | |
double | getTolerance () const |
Get the tolerance parameter. More... | |
void | init () |
Initialize the condition. More... | |
virtual void | resetCounter () |
virtual void | setBurnin (int burnin) |
virtual int | getBurnin () const |
OptimizationStopCondition * | clone () const =0 |
Create a copy of this object and send a pointer to it. More... | |
virtual bool | isToleranceReached () const =0 |
Tell if the we reached the desired tolerance with a given new set of estimates. More... | |
virtual double | getCurrentTolerance () const =0 |
Get the current tolerance. More... | |
Protected Attributes | |
const OptimizerInterface * | optimizer_ |
double | tolerance_ |
double | callCount_ |
Count the number of times the isToleranceReached() function has been called. More... | |
int | burnin_ |
Partial implementation of the OptimizationStopCondition interface.
This class provides:
Definition at line 105 of file OptimizationStopCondition.h.
|
inline |
Definition at line 121 of file OptimizationStopCondition.h.
|
inline |
Definition at line 127 of file OptimizationStopCondition.h.
|
inline |
Definition at line 133 of file OptimizationStopCondition.h.
|
inline |
Definition at line 139 of file OptimizationStopCondition.h.
|
inline |
Definition at line 145 of file OptimizationStopCondition.h.
|
inlinevirtual |
Definition at line 160 of file OptimizationStopCondition.h.
|
pure virtualinherited |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
Implemented in bpp::FunctionStopCondition, bpp::ParametersStopCondition, bpp::NewtonBacktrackOneDimension::NBODStopCondition, bpp::DownhillSimplexMethod::DSMStopCondition, bpp::BrentOneDimension::BODStopCondition, bpp::GoldenSectionSearch::GSSStopCondition, and bpp::PowellMultiDimensions::PMDStopCondition.
|
inlinevirtual |
Definition at line 177 of file OptimizationStopCondition.h.
|
pure virtualinherited |
Get the current tolerance.
This is computed from the last check performed. Initially, it is equal to the tolerance parameter.
Implemented in bpp::FunctionStopCondition, bpp::ParametersStopCondition, bpp::NewtonBacktrackOneDimension::NBODStopCondition, bpp::DownhillSimplexMethod::DSMStopCondition, bpp::BrentOneDimension::BODStopCondition, bpp::GoldenSectionSearch::GSSStopCondition, and bpp::PowellMultiDimensions::PMDStopCondition.
|
inlinevirtual |
Implements bpp::OptimizationStopCondition.
Definition at line 163 of file OptimizationStopCondition.h.
|
inlinevirtual |
Get the tolerance parameter.
Implements bpp::OptimizationStopCondition.
Definition at line 169 of file OptimizationStopCondition.h.
Referenced by bpp::GoldenSectionSearch::GSSStopCondition::isToleranceReached().
|
inlinevirtual |
Initialize the condition.
Implements bpp::OptimizationStopCondition.
Reimplemented in bpp::FunctionStopCondition, and bpp::ParametersStopCondition.
Definition at line 171 of file OptimizationStopCondition.h.
Referenced by bpp::ParametersStopCondition::init(), and bpp::FunctionStopCondition::init().
|
pure virtualinherited |
Tell if the we reached the desired tolerance with a given new set of estimates.
The new parameter list is compared to the last estimates, and the lastParameterEstimates list is actulaized with the newParameters list.
Implemented in bpp::FunctionStopCondition, bpp::ParametersStopCondition, bpp::NewtonBacktrackOneDimension::NBODStopCondition, bpp::DownhillSimplexMethod::DSMStopCondition, bpp::BrentOneDimension::BODStopCondition, bpp::GoldenSectionSearch::GSSStopCondition, and bpp::PowellMultiDimensions::PMDStopCondition.
|
inline |
Definition at line 151 of file OptimizationStopCondition.h.
References burnin_, callCount_, optimizer_, and tolerance_.
|
inlinevirtual |
Definition at line 173 of file OptimizationStopCondition.h.
|
inlinevirtual |
Definition at line 175 of file OptimizationStopCondition.h.
|
inlinevirtual |
Set the optimizer attached to this instance.
optimizer | The optimizer to which this instance belongs to. |
Implements bpp::OptimizationStopCondition.
Definition at line 165 of file OptimizationStopCondition.h.
|
inlinevirtual |
Set the tolerance parameter.
tolerance | The tolerance parameter. |
Implements bpp::OptimizationStopCondition.
Definition at line 167 of file OptimizationStopCondition.h.
|
protected |
Definition at line 118 of file OptimizationStopCondition.h.
Referenced by bpp::BrentOneDimension::BODStopCondition::BODStopCondition(), bpp::ParametersStopCondition::getCurrentTolerance(), bpp::FunctionStopCondition::getCurrentTolerance(), bpp::PowellMultiDimensions::PMDStopCondition::isToleranceReached(), bpp::GoldenSectionSearch::GSSStopCondition::isToleranceReached(), bpp::BrentOneDimension::BODStopCondition::isToleranceReached(), bpp::ParametersStopCondition::isToleranceReached(), bpp::FunctionStopCondition::isToleranceReached(), and operator=().
|
mutableprotected |
Count the number of times the isToleranceReached() function has been called.
Definition at line 116 of file OptimizationStopCondition.h.
Referenced by bpp::ParametersStopCondition::getCurrentTolerance(), bpp::FunctionStopCondition::getCurrentTolerance(), bpp::GoldenSectionSearch::GSSStopCondition::isToleranceReached(), bpp::PowellMultiDimensions::PMDStopCondition::isToleranceReached(), bpp::BrentOneDimension::BODStopCondition::isToleranceReached(), bpp::ParametersStopCondition::isToleranceReached(), bpp::FunctionStopCondition::isToleranceReached(), and operator=().
|
protected |
Definition at line 109 of file OptimizationStopCondition.h.
Referenced by bpp::GoldenSectionSearch::GSSStopCondition::getCurrentTolerance(), bpp::PowellMultiDimensions::PMDStopCondition::getCurrentTolerance(), bpp::BrentOneDimension::BODStopCondition::getCurrentTolerance(), bpp::ParametersStopCondition::init(), bpp::FunctionStopCondition::init(), bpp::BrentOneDimension::BODStopCondition::isToleranceReached(), bpp::ParametersStopCondition::isToleranceReached(), bpp::FunctionStopCondition::isToleranceReached(), and operator=().
|
protected |
Definition at line 110 of file OptimizationStopCondition.h.
Referenced by bpp::BrentOneDimension::BODStopCondition::BODStopCondition(), bpp::ParametersStopCondition::getCurrentTolerance(), bpp::FunctionStopCondition::getCurrentTolerance(), bpp::PowellMultiDimensions::PMDStopCondition::isToleranceReached(), bpp::GoldenSectionSearch::GSSStopCondition::isToleranceReached(), bpp::DownhillSimplexMethod::DSMStopCondition::isToleranceReached(), bpp::ParametersStopCondition::isToleranceReached(), bpp::FunctionStopCondition::isToleranceReached(), and operator=().