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];
121 typedef std::vector<Real>
vector;
126 using Teuchos::dyn_cast;
129 RCP<vector> x0p = dyn_cast<SV>(x0).
getVector();
130 RCP<vector> xp = dyn_cast<SV>(x).
getVector();
141 RCP<vector> l_rcp = rcp(
new vector(n,0.0) );
142 RCP<vector> u_rcp = rcp(
new vector(n,0.0) );
149 RCP<V> l = rcp(
new SV(l_rcp) );
150 RCP<V> u = rcp(
new SV(u_rcp) );
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.
Provides the std::vector implementation of the ROL::Vector interface.
void getHS4(Teuchos::RCP< Objective< Real > > &obj, Teuchos::RCP< BoundConstraint< Real > > &con, Vector< Real > &x0, Vector< Real > &x)
Real value(const Vector< Real > &x, Real &tol)
Compute value.
Provides the interface to apply upper and lower bound constraints.
Teuchos::RCP< const vector > getVector(const V &x)
W. Hock and K. Schittkowski 4th test function.
static const double ROL_OVERFLOW
Platform-dependent maximum double.
Teuchos::RCP< vector > getVector(V &x)