41 #ifndef BPP_NUMERIC_FUNCTION_GOLDENSECTIONSEARCH_H
42 #define BPP_NUMERIC_FUNCTION_GOLDENSECTIONSEARCH_H
Partial implementation of the OptimizationStopCondition interface.
Partial implementation of the Optimizer interface.
This is the function abstract class.
GSSStopCondition * clone() const
Create a copy of this object and send a pointer to it.
GSSStopCondition(GoldenSectionSearch *gss)
virtual ~GSSStopCondition()
bool isToleranceReached() const
Tell if the we reached the desired tolerance with a given new set of estimates.
double getCurrentTolerance() const
Get the current tolerance.
Golden Section Search optimization algorithm for one parameter.
virtual ~GoldenSectionSearch()
GoldenSectionSearch * clone() const
Create a copy of this object and send a pointer to it.
void setInitialInterval(double inf, double sup)
Set intial search interval.
double doStep()
This function is called by the step() method and contains all calculations.
bool isInitialIntervalSet_
bool isInitialIntervalSet() const
void doInit(const ParameterList ¶ms)
This function is called by the init() method and contains all calculations.
GoldenSectionSearch(Function *function)
double getFunctionValue() const
Initialize optimizer.
The parameter list object.