49 #include "Teuchos_GlobalMPISession.hpp"
59 int main(
int argc,
char *argv[]) {
64 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
91 catch (std::logic_error& err) {
92 *outStream << err.what() << std::endl;
97 std::cout <<
"End Result: TEST FAILED" << std::endl;
99 std::cout <<
"End Result: TEST PASSED" << std::endl;
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].
Contains definitions for Rosenbrock's function.
Defines a no-output stream class ROL::NullStream and a function makeStreamPtr which either wraps a re...
Ptr< ostream > makeStreamPtr(ostream &os, bool noSuppressOutput=true)
virtual std::vector< std::vector< Real > > checkGradient(const Vector< Real > &x, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
Finite-difference gradient check.
Ptr< Objective< Real > > getObjective(void) const
int main(int argc, char *argv[])
Ptr< Vector< Real > > getInitialGuess(void) const