25int main(
int argc,
char *argv[]) {
32 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
35 int iprint = argc - 1;
36 ROL::Ptr<std::ostream> outStream;
39 outStream = ROL::makePtrFromRef(std::cout);
41 outStream = ROL::makePtrFromRef(bhs);
44 ROL::nullstream oldFormatState;
45 oldFormatState.copyfmt(std::cout);
62 g = x->dual().clone();
65 obj->gradient(*g,*x,
zero);
67 model = ROL::makePtr<ROL::ColemanLiModel<RealT>>(*obj,*con,*x,*g);
69 ROL::Ptr<V> s = x->clone();
70 ROL::Ptr<V> v = x->clone();
71 ROL::Ptr<V> u = x->clone();
77 model->checkGradient(*s,*v);
78 model->checkHessVec(*s,*v);
79 model->checkHessSym(*s,*u,*v);
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,...