49#include "Teuchos_GlobalMPISession.hpp"
54#include "ROL_ConicApproximationModel.hpp"
59int main(
int argc,
char *argv[]) {
64 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
88 conic.checkGradient( *x, *d,
true, *outStream );
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;
Contains definitions for Rosenbrock's function.
Defines a no-output stream class ROL::NullStream and a function makeStreamPtr which either wraps a re...
Provides the interface to evaluate conic approximation function.
Ptr< Objective< Real > > getObjective(void) const
Ptr< Vector< Real > > getInitialGuess(void) const
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,...
Ptr< ostream > makeStreamPtr(ostream &os, bool noSuppressOutput=true)
int main(int argc, char *argv[])