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