15 #include "Teuchos_GlobalMPISession.hpp"
20 #include "ROL_ConicApproximationModel.hpp"
25 int main(
int argc,
char *argv[]) {
30 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
57 catch (std::logic_error& err) {
58 *outStream << err.what() << std::endl;
63 std::cout <<
"End Result: TEST FAILED" << std::endl;
65 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].
Ptr< std::ostream > makeStreamPtr(std::ostream &os, bool noSuppressOutput=true)
Contains definitions for Rosenbrock's function.
Defines a no-output stream class ROL::NullStream and a function makeStreamPtr which either wraps a re...
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