Base class line search interface. More...
|Default constructor. |
|virtual bool||compute (NOX::Abstract::Group &grp, double &step, const NOX::Abstract::Vector &dir, const NOX::Solver::Generic &s)=0|
|Perform a line search. |
Base class line search interface.
Every line search should respect the following Parameter:
|virtual bool NOX::LineSearch::Generic::compute||(||NOX::Abstract::Group &||grp,|
|const NOX::Abstract::Vector &||dir,|
|const NOX::Solver::Generic &||s|
Perform a line search.
|grp||The initial solution vector, .|
|dir||A vector of directions to be used in the line search, .|
|s||The nonlinear solver.|
|step||The distance the direction was scaled, .|
Ideally, (e.g the final direction is a descent direction).
Note that the
dir object is a std::vector. For typical line searches as described in the above equation, this vector is of size one. We have used a std::vector to allow for special cases of multi-directional line searches such as the Bader/Schnabel curvillinear line search.
Return value is true for a successful line search computation.