58 return 1.0/3.0 * std::pow((*ex)[0] + 1.0,3.0) + (*ex)[1];
66 (*eg)[0] = std::pow((*ex)[0] + 1.0,2.0);
77 (*ehv)[0] = 2.0*((*ex)[0] + 1.0)*(*ev)[0] + alpha*(*ev)[0];
78 (*ehv)[1] = 0.0 + alpha*(*ev)[1];
90 return ROL::makePtr<Objective_HS4<Real>>();
97 ROL::Ptr<std::vector<Real> > x0p = ROL::makePtr<std::vector<Real>>(n,0.0);
98 (*x0p)[0] = 1.125; (*x0p)[1] = 0.125;
99 return ROL::makePtr<StdVector<Real>>(x0p);
106 ROL::Ptr<std::vector<Real> > xp = ROL::makePtr<std::vector<Real>>(n,0.0);
107 (*xp)[0] = 1.0; (*xp)[1] = 0.0;
108 return ROL::makePtr<StdVector<Real>>(xp);
115 ROL::Ptr<std::vector<Real> > lp = ROL::makePtr<std::vector<Real>>(n,0.0);
116 (*lp)[0] = 1.0; (*lp)[1] = 0.0;
117 ROL::Ptr<Vector<Real> > l = ROL::makePtr<StdVector<Real>>(lp);
118 ROL::Ptr<std::vector<Real> > up = ROL::makePtr<std::vector<Real>>(n,0.0);
119 (*up)[0] = ROL_INF<Real>(); (*up)[1] = ROL_INF<Real>();
120 ROL::Ptr<Vector<Real> > u = ROL::makePtr<StdVector<Real>>(up);
121 return ROL::makePtr<Bounds<Real>>(l,u);
ROL::Ptr< const vector > getVector(const V &x)
Provides the interface to evaluate objective functions.
std::vector< Real > vector
Ptr< Vector< Real > > getSolution(const int i=0) const
virtual void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
Contains definitions of custom data types in ROL.
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
Defines the linear algebra or vector space interface.
Ptr< Vector< Real > > getInitialGuess(void) const
Ptr< Objective< Real > > getObjective(void) const
Real value(const Vector< Real > &x, Real &tol)
Compute value.
Contains definitions of test objective functions.
Ptr< BoundConstraint< Real > > getBoundConstraint(void) const
W. Hock and K. Schittkowski 4th test function.
ROL::Ptr< vector > getVector(V &x)