25#ifndef quantlib_optimization_line_search_h_
26#define quantlib_optimization_line_search_h_
61 const RealType t_ini) = 0;
Optimization criteria class.
Dynamically-sized vector class.
Criteria to end optimization process:
Base class for line search.
DynamicVector< RealType > xtd_
new x and its gradient
LineSearch(RealType=0.0)
Default constructor.
RealType lastFunctionValue()
return last objective function value
virtual RealType operator()(Problem &P, EndCriteria::Type &ecType, const EndCriteria &, const RealType t_ini)=0
Perform line search.
const DynamicVector< RealType > & searchDirection() const
current value of the search direction
DynamicVector< RealType > searchDirection_
current values of the search direction
RealType lastGradientNorm2()
return square norm of last gradient
virtual ~LineSearch()
Destructor.
const DynamicVector< RealType > & lastGradient()
return last gradient
const DynamicVector< RealType > & lastX()
return last x value
RealType qt_
objective function value and gradient norm corresponding to xtd_
bool succeed_
flag to know if linesearch succeed
Constrained optimization problem.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.