53 #ifndef ROL_SUMOFSQUARES_HPP
54 #define ROL_SUMOFSQUARES_HPP
96 return ROL::makePtr<Objective_SumOfSquares<Real>>();
103 ROL::Ptr<std::vector<Real> > x0p = ROL::makePtr<std::vector<Real>>(n,1.0);
104 return ROL::makePtr<StdVector<Real>>(x0p);
111 ROL::Ptr<std::vector<Real> > xp = ROL::makePtr<std::vector<Real>>(n,0.0);
112 return ROL::makePtr<StdVector<Real>>(xp);
Ptr< Vector< Real > > getInitialGuess(void) const
Provides the interface to evaluate objective functions.
virtual void scale(const Real alpha)=0
Compute where .
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
virtual void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
Ptr< Objective< Real > > getObjective(void) const
Defines the linear algebra or vector space interface.
virtual Real dot(const Vector &x) const =0
Compute where .
Contains definitions of test objective functions.
Real value(const Vector< Real > &x, Real &tol)
Compute value.
Ptr< Vector< Real > > getSolution(const int i=0) const
virtual void set(const Vector &x)
Set where .
void invHessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply inverse Hessian approximation to vector.