10 #ifndef ROL_ITERATIONSCALING_U_H
11 #define ROL_ITERATIONSCALING_U_H
21 template<
typename Real>
39 void run( Real &alpha, Real &fval,
int &ls_neval,
int &ls_ngrad,
42 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.
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
virtual Real value(const Vector< Real > &x, Real &tol)=0
Compute value.
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.
Provides an implementation of iteration scaled line search.
IterationScaling_U(ParameterList &parlist)
void initialize(const Vector< Real > &x, const Vector< Real > &g) override
Ptr< Vector< Real > > xnew_