15#include "Teuchos_GlobalMPISession.hpp"
20#include "ROL_ConicApproximationModel.hpp"
25int main(
int argc,
char *argv[]) {
30 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
54 conic.checkGradient( *x, *d,
true, *outStream );
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;
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< std::ostream > makeStreamPtr(std::ostream &os, bool noSuppressOutput=true)
int main(int argc, char *argv[])