10 #ifndef ROL_STDOBJECTIVE_H
11 #define ROL_STDOBJECTIVE_H
25 template<
typename Real>
28 virtual void update(
const std::vector<Real> &x,
bool flag =
true,
int iter = -1 ) {}
37 virtual Real
value(
const std::vector<Real> &x, Real &tol ) = 0;
42 virtual void gradient( std::vector<Real> &g,
const std::vector<Real> &x, Real &tol );
47 virtual Real
dirDeriv(
const std::vector<Real> &x,
const std::vector<Real> &d, Real &tol );
52 virtual void hessVec( std::vector<Real> &hv,
const std::vector<Real> &v,
const std::vector<Real> &x, Real &tol );
57 virtual void invHessVec( std::vector<Real> &hv,
const std::vector<Real> &v,
const std::vector<Real> &x, Real &tol );
62 virtual void precond( std::vector<Real> &Pv,
const std::vector<Real> &v,
const std::vector<Real> &x, Real &tol );
68 Real
sgn(Real x)
const;
virtual Real value(const std::vector< Real > &x, Real &tol)=0
Provides the interface to evaluate objective functions.
Defines the linear algebra or vector space interface.
virtual void hessVec(std::vector< Real > &hv, const std::vector< Real > &v, const std::vector< Real > &x, Real &tol)
virtual void gradient(std::vector< Real > &g, const std::vector< Real > &x, Real &tol)
Specializes the ROL::Objective interface for objective functions that operate on ROL::StdVector's.
virtual void invHessVec(std::vector< Real > &hv, const std::vector< Real > &v, const std::vector< Real > &x, Real &tol)
virtual void update(const std::vector< Real > &x, bool flag=true, int iter=-1)
virtual void precond(std::vector< Real > &Pv, const std::vector< Real > &v, const std::vector< Real > &x, Real &tol)
virtual Real dirDeriv(const std::vector< Real > &x, const std::vector< Real > &d, Real &tol)
virtual void update(const std::vector< Real > &x, UpdateType type, int iter=-1)