#include <NOX_LineSearch_FullStep.H>
Public Member Functions | |
FullStep (const Teuchos::RCP< NOX::GlobalData > &gd, Teuchos::ParameterList ¶ms) | |
Constructor. | |
~FullStep () | |
Destructor. | |
bool | reset (const Teuchos::RCP< NOX::GlobalData > &gd, Teuchos::ParameterList ¶ms) |
bool | compute (NOX::Abstract::Group &newgrp, double &step, const NOX::Abstract::Vector &dir, const NOX::Solver::Generic &s) |
Perform a line search. | |
Private Attributes | |
double | stepSize |
Full step length. |
This line search can be called via NOX::LineSearch::Manager.
The following parameters can be specified in the "Full Step" sublist of the "Line Search" sublist:
Definition at line 60 of file NOX_LineSearch_FullStep.H.
FullStep::FullStep | ( | const Teuchos::RCP< NOX::GlobalData > & | gd, | |
Teuchos::ParameterList & | params | |||
) |
FullStep::~FullStep | ( | ) |
bool FullStep::compute | ( | NOX::Abstract::Group & | grp, | |
double & | step, | |||
const NOX::Abstract::Vector & | dir, | |||
const NOX::Solver::Generic & | s | |||
) | [virtual] |
Perform a line search.
On input:
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, ![]() | |
grp | The grp is updated with a new solution, ![]() |
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.
Implements NOX::LineSearch::Generic.
Definition at line 74 of file NOX_LineSearch_FullStep.C.
References NOX::Abstract::Group::computeX(), NOX::Solver::Generic::getPreviousSolutionGroup(), and stepSize.
double NOX::LineSearch::FullStep::stepSize [private] |
Full step length.
Definition at line 82 of file NOX_LineSearch_FullStep.H.
Referenced by compute(), and FullStep().