75 Teuchos::RCP<const vector>
getVector(
const V& x ) {
76 using Teuchos::dyn_cast;
81 using Teuchos::dyn_cast;
92 return 1.0/3.0 * std::pow((*ex)[0] + 1.0,3.0) + (*ex)[1];
100 (*eg)[0] = std::pow((*ex)[0] + 1.0,2.0);
111 (*ehv)[0] = 2.0*((*ex)[0] + 1.0)*(*ev)[0] + alpha*(*ev)[0];
112 (*ehv)[1] = 0.0 + alpha*(*ev)[1];
126 Teuchos::RCP<std::vector<Real> > x0p = Teuchos::rcp(
new std::vector<Real>(n,0.0));
127 (*x0p)[0] = 1.125; (*x0p)[1] = 0.125;
131 Teuchos::RCP<std::vector<Real> > xp = Teuchos::rcp(
new std::vector<Real>(n,0.0));
132 (*xp)[0] = 1.0; (*xp)[1] = 0.0;
139 Teuchos::RCP<std::vector<Real> > lp = Teuchos::rcp(
new std::vector<Real>(n,0.0));
140 (*lp)[0] = 1.0; (*lp)[1] = 0.0;
142 Teuchos::RCP<std::vector<Real> > up = Teuchos::rcp(
new std::vector<Real>(n,0.0));
Provides the interface to evaluate objective functions.
std::vector< Real > vector
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.
Real value(const Vector< Real > &x, Real &tol)
Compute value.
Provides the interface to apply upper and lower bound constraints.
void getHS4(Teuchos::RCP< Objective< Real > > &obj, Teuchos::RCP< BoundConstraint< Real > > &con, Teuchos::RCP< Vector< Real > > &x0, Teuchos::RCP< Vector< Real > > &x)
static const double ROL_INF
Teuchos::RCP< const vector > getVector(const V &x)
W. Hock and K. Schittkowski 4th test function.
Teuchos::RCP< vector > getVector(V &x)