44 #ifndef ROL_STDOBJECTIVE_H
45 #define ROL_STDOBJECTIVE_H
59 template<
typename Real>
62 virtual void update(
const std::vector<Real> &x,
bool flag =
true,
int iter = -1 ) {}
71 virtual Real
value(
const std::vector<Real> &x, Real &tol ) = 0;
76 virtual void gradient( std::vector<Real> &g,
const std::vector<Real> &x, Real &tol );
81 virtual Real
dirDeriv(
const std::vector<Real> &x,
const std::vector<Real> &d, Real &tol );
86 virtual void hessVec( std::vector<Real> &hv,
const std::vector<Real> &v,
const std::vector<Real> &x, Real &tol );
91 virtual void invHessVec( std::vector<Real> &hv,
const std::vector<Real> &v,
const std::vector<Real> &x, Real &tol );
96 virtual void precond( std::vector<Real> &Pv,
const std::vector<Real> &v,
const std::vector<Real> &x, Real &tol );
102 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)