49#include "Teuchos_GlobalMPISession.hpp"
54#include "ROL_ConicApproximationModel.hpp"
59int main(
int argc,
char *argv[]) {
64 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
67 auto outStream = makeStreamPtr( std::cout, argc > 1 );
83 RandomizeVector( *s );
84 RandomizeVector( *a );
85 RandomizeVector( *d );
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
int main(int argc, char *argv[])