53 #include "Teuchos_oblackholestream.hpp" 54 #include "Teuchos_GlobalMPISession.hpp" 59 int main(
int argc,
char *argv[]) {
67 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
70 int iprint = argc - 1;
71 Teuchos::RCP<std::ostream> outStream;
72 Teuchos::oblackholestream bhs;
74 outStream = Teuchos::rcp(&std::cout,
false);
76 outStream = Teuchos::rcp(&bhs,
false);
79 Teuchos::oblackholestream oldFormatState;
80 oldFormatState.copyfmt(std::cout);
93 g = x->dual().clone();
96 obj->gradient(*g,*x,zero);
100 RCP<V> s = x->clone();
101 RCP<V> v = x->clone();
102 RCP<V> u = x->clone();
108 model->checkGradient(*s,*v);
109 model->checkHessVec(*s,*v);
110 model->checkHessSym(*s,*u,*v);
Provides the interface to evaluate objective functions.
void RandomizeVector(Vector< Real > &x, const Real &lower=0.0, const Real &upper=1.0)
Fill a ROL::Vector with uniformly-distributed random numbers in the interval [lower,upper].
Defines the linear algebra or vector space interface.
void getHS2(Teuchos::RCP< Objective< Real > > &obj, Teuchos::RCP< BoundConstraint< Real > > &con, Teuchos::RCP< Vector< Real > > &x0, Teuchos::RCP< Vector< Real > > &x)
Provides the interface to evaluate interior trust-region model functions from the Coleman-Li bound co...
Provides the interface to apply upper and lower bound constraints.
Contains definitions for W. Hock and K. Schittkowski 2nd test function.
int main(int argc, char *argv[])