bpp-core3
3.0.0
|
Interface for otimization stop condition objet. More...
#include <Bpp/Numeric/Function/OptimizationStopCondition.h>
Public Member Functions | |
OptimizationStopCondition () | |
virtual | ~OptimizationStopCondition () |
OptimizationStopCondition * | clone () const =0 |
Create a copy of this object and send a pointer to it. More... | |
virtual const OptimizerInterface * | getOptimizer () const =0 |
virtual void | setOptimizer (const OptimizerInterface *optimizer)=0 |
Set the optimizer attached to this instance. More... | |
virtual void | init ()=0 |
Initialize the condition. More... | |
virtual bool | isToleranceReached () const =0 |
Tell if the we reached the desired tolerance with a given new set of estimates. More... | |
virtual void | setTolerance (double tolerance)=0 |
Set the tolerance parameter. More... | |
virtual double | getTolerance () const =0 |
Get the tolerance parameter. More... | |
virtual double | getCurrentTolerance () const =0 |
Get the current tolerance. More... | |
Interface for otimization stop condition objet.
Classes implementing the OptimizationStopCondition interface provides the isToleranceReached() function that tells when the optimization process reached a given tolerance parameter. This parameter may be set or retrieve using the setTolerance() and getTolerance() functions.
OptimizationStopCondition implementations may be general and work on parameter (
Definition at line 32 of file OptimizationStopCondition.h.
|
inline |
Definition at line 36 of file OptimizationStopCondition.h.
|
inlinevirtual |
Definition at line 37 of file OptimizationStopCondition.h.
|
pure virtual |
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.
|
pure virtual |
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.
|
pure virtual |
Implemented in bpp::AbstractOptimizationStopCondition.
|
pure virtual |
Get the tolerance parameter.
Implemented in bpp::AbstractOptimizationStopCondition.
|
pure virtual |
Initialize the condition.
Implemented in bpp::FunctionStopCondition, bpp::ParametersStopCondition, bpp::AbstractOptimizationStopCondition, and bpp::NewtonBacktrackOneDimension::NBODStopCondition.
|
pure virtual |
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.
|
pure virtual |
Set the optimizer attached to this instance.
optimizer | The optimizer to which this instance belongs to. |
Implemented in bpp::AbstractOptimizationStopCondition.
|
pure virtual |
Set the tolerance parameter.
tolerance | The tolerance parameter. |
Implemented in bpp::AbstractOptimizationStopCondition.