10 #ifndef ROL_BACKTRACKING_U_H
11 #define ROL_BACKTRACKING_U_H
21 template<
typename Real>
34 rho_ = parlist.sublist(
"Step").sublist(
"Line Search").sublist(
"Line-Search Method").get(
"Backtracking Rate",half);
42 void run( Real &alpha, Real &fval,
int &ls_neval,
int &ls_ngrad,
45 Real tol = std::sqrt(ROL_EPSILON<Real>());
Provides interface for and implements line searches.
virtual void initialize(const Vector< Real > &x, const Vector< Real > &g)
Provides the interface to evaluate objective functions.
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
virtual bool status(const ELineSearchU type, int &ls_neval, int &ls_ngrad, const Real alpha, const Real fold, const Real sgold, const Real fnew, const Vector< Real > &x, const Vector< Real > &s, Objective< Real > &obj)
virtual Real value(const Vector< Real > &x, Real &tol)=0
Compute value.
Ptr< Vector< Real > > xnew_
Defines the linear algebra or vector space interface.
virtual Real getInitialAlpha(int &ls_neval, int &ls_ngrad, const Real fval, const Real gs, const Vector< Real > &x, const Vector< Real > &s, Objective< Real > &obj)
virtual void update(const Vector< Real > &x, UpdateType type, int iter=-1)
Update objective function.
void run(Real &alpha, Real &fval, int &ls_neval, int &ls_ngrad, const Real &gs, const Vector< Real > &s, const Vector< Real > &x, Objective< Real > &obj) override
void initialize(const Vector< Real > &x, const Vector< Real > &g) override
BackTracking_U(ParameterList &parlist)
Implements a simple back tracking line search.