| OpenMD 3.1
    Molecular Dynamics in the Open | 
Base class for line search. More...
#include <LineSearch.hpp>
 Inheritance diagram for QuantLib::LineSearch:
 Inheritance diagram for QuantLib::LineSearch:| Public Member Functions | |
| LineSearch (RealType=0.0) | |
| Default constructor. | |
| virtual | ~LineSearch () | 
| Destructor. | |
| const DynamicVector< RealType > & | lastX () | 
| return last x value | |
| RealType | lastFunctionValue () | 
| return last objective function value | |
| const DynamicVector< RealType > & | lastGradient () | 
| return last gradient | |
| RealType | lastGradientNorm2 () | 
| return square norm of last gradient | |
| bool | succeed () | 
| virtual RealType | operator() (Problem &P, EndCriteria::Type &ecType, const EndCriteria &, const RealType t_ini)=0 | 
| Perform line search. | |
| RealType | update (DynamicVector< RealType > ¶ms, const DynamicVector< RealType > &direction, RealType beta, const Constraint &constraint) | 
| const DynamicVector< RealType > & | searchDirection () const | 
| current value of the search direction | |
| DynamicVector< RealType > & | searchDirection () | 
| Protected Attributes | |
| DynamicVector< RealType > | searchDirection_ | 
| current values of the search direction | |
| DynamicVector< RealType > | xtd_ | 
| new x and its gradient | |
| DynamicVector< RealType > | gradient_ | 
| RealType | qt_ | 
| objective function value and gradient norm corresponding to xtd_ | |
| RealType | qpt_ | 
| bool | succeed_ | 
| flag to know if linesearch succeed | |
Base class for line search.
Definition at line 39 of file LineSearch.hpp.
| 
 | inlineexplicit | 
Default constructor.
Definition at line 42 of file LineSearch.hpp.
| 
 | inlinevirtual | 
Destructor.
Definition at line 44 of file LineSearch.hpp.
| 
 | inline | 
| 
 | inline | 
return last gradient
Definition at line 51 of file LineSearch.hpp.
| 
 | inline | 
return square norm of last gradient
Definition at line 53 of file LineSearch.hpp.
| 
 | inline | 
| 
 | pure virtual | 
Perform line search.
Implemented in QuantLib::ArmijoLineSearch.
| 
 | inline | 
Definition at line 70 of file LineSearch.hpp.
| 
 | inline | 
current value of the search direction
Definition at line 67 of file LineSearch.hpp.
References searchDirection_.
| 
 | inline | 
Definition at line 55 of file LineSearch.hpp.
| RealType QuantLib::LineSearch::update | ( | DynamicVector< RealType > & | params, | 
| const DynamicVector< RealType > & | direction, | ||
| RealType | beta, | ||
| const Constraint & | constraint ) | 
Definition at line 30 of file LineSearch.cpp.
| 
 | protected | 
Definition at line 76 of file LineSearch.hpp.
| 
 | protected | 
Definition at line 78 of file LineSearch.hpp.
| 
 | protected | 
objective function value and gradient norm corresponding to xtd_
Definition at line 78 of file LineSearch.hpp.
Referenced by lastFunctionValue(), and QuantLib::ArmijoLineSearch::operator()().
| 
 | protected | 
current values of the search direction
Definition at line 74 of file LineSearch.hpp.
Referenced by QuantLib::ArmijoLineSearch::operator()(), and searchDirection().
| 
 | protected | 
flag to know if linesearch succeed
Definition at line 80 of file LineSearch.hpp.
Referenced by QuantLib::ArmijoLineSearch::operator()().
| 
 | protected | 
new x and its gradient
Definition at line 76 of file LineSearch.hpp.
Referenced by lastX(), and QuantLib::ArmijoLineSearch::operator()().