59int main(
int argc,
char *argv[]) {
66 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
69 int iprint = argc - 1;
70 ROL::Ptr<std::ostream> outStream;
73 outStream = ROL::makePtrFromRef(std::cout);
75 outStream = ROL::makePtrFromRef(bhs);
78 ROL::nullstream oldFormatState;
79 oldFormatState.copyfmt(std::cout);
96 g = x->dual().clone();
99 obj->gradient(*g,*x,
zero);
101 model = ROL::makePtr<ROL::ColemanLiModel<RealT>>(*obj,*con,*x,*g);
103 ROL::Ptr<V> s = x->clone();
104 ROL::Ptr<V> v = x->clone();
105 ROL::Ptr<V> u = x->clone();
111 model->checkGradient(*s,*v);
112 model->checkHessVec(*s,*v);
113 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,...