40 #ifndef _PSEUDONEWTONOPTIMIZER_H_ 41 #define _PSEUDONEWTONOPTIMIZER_H_ 43 #include <Bpp/Numeric/Function/AbstractOptimizer.h> 59 public AbstractOptimizer
63 public AbstractOptimizationStopCondition
67 AbstractOptimizationStopCondition(pno) {}
104 return dynamic_cast<const DerivableSecondOrder*
>(AbstractOptimizer::getFunction());
108 return dynamic_cast<DerivableSecondOrder*
>(AbstractOptimizer::getFunction());
119 void doInit(
const ParameterList& params)
throw (Exception);
121 double doStep() throw (Exception);
130 return dynamic_cast<DerivableSecondOrder*
>(AbstractOptimizer::getFunction_());
138 #endif //_PSEUDONEWTONOPTIMIZER_H_ DerivableSecondOrder * getFunction_()
PNStopCondition * clone() const
PseudoNewtonOptimizer(DerivableSecondOrder *function)
ParameterList previousPoint_
void setMaximumNumberOfCorrections(unsigned int mx)
std::vector< std::string > params_
PseudoNewtonOptimizer * clone() const
void doInit(const ParameterList ¶ms)
bool isToleranceReached() const
virtual ~PNStopCondition()
This Optimizer implements Newton's algorithm for finding a minimum of a function. This is in fact a m...
double getFunctionValue() const
PNStopCondition(PseudoNewtonOptimizer *pno)
unsigned int maxCorrection_
virtual ~PseudoNewtonOptimizer()
DerivableSecondOrder * getFunction()
double getCurrentTolerance() const
const DerivableSecondOrder * getFunction() const