5 #ifndef BPP_NUMERIC_FUNCTION_NEWTONBACKTRACKONEDIMENSION_H 6 #define BPP_NUMERIC_FUNCTION_NEWTONBACKTRACKONEDIMENSION_H 67 double fold_,
f_,
a_,
alam_,
alamin_,
alam2_,
b_,
disc_,
f2_,
rhs1_,
rhs2_,
slope_,
test_,
tmplam_;
82 throw NullPointerException(
"NewtonBacktrackOneDimension::firstOrderDerivableFunction() : no function associated to this optimizer.");
94 throw NullPointerException(
"NewtonBacktrackOneDimension::firstOrderDerivableFunction() : no function associated to this optimizer.");
109 #endif // BPP_NUMERIC_FUNCTION_NEWTONBACKTRACKONEDIMENSION_H This is the abstract class for first order derivable functions.
double getCurrentTolerance() const
Get the current tolerance.
virtual ~NBODStopCondition()
NewtonBacktrackOneDimension(std::shared_ptr< FunctionInterface > function, double slope, double test)
Constructor.
std::shared_ptr< FirstOrderDerivable > getFirstOrderDerivableFunction()
FirstOrderDerivable & firstOrderDerivableFunction()
void doInit(const ParameterList ¶ms)
This function is called by the init() method and contains all calculations.
std::shared_ptr< FunctionInterface > function_
The function to optimize.
NBODStopCondition * clone() const
Create a copy of this object and send a pointer to it.
The parameter list object.
bool isToleranceReached() const
Tell if the we reached the desired tolerance with a given new set of estimates.
virtual ~NewtonBacktrackOneDimension()
double doStep()
This function is called by the step() method and contains all calculations.
NewtonBacktrackOneDimension * clone() const
Create a copy of this object and send a pointer to it.
The base class exception for NULL pointer error. This exception may be thrown when an unexpected NULL...
std::shared_ptr< const FirstOrderDerivable > getFirstOrderDerivableFunction() const
void init()
Initialize the condition.
Newton's backtrack nearly optimization for one parameter.
Partial implementation of the Optimizer interface.
NBODStopCondition(NewtonBacktrackOneDimension *bod)
Partial implementation of the OptimizationStopCondition interface.
const FirstOrderDerivable & firstOrderDerivableFunction() const