42 #ifndef NLP_FIRST_DERIVATIVES_TESTER_H 43 #define NLP_FIRST_DERIVATIVES_TESTER_H 47 #include "NLPInterfacePack_Types.hpp" 48 #include "NLPInterfacePack_CalcFiniteDiffProd.hpp" 49 #include "Teuchos_StandardCompositionMacros.hpp" 50 #include "Teuchos_StandardMemberCompositionMacros.hpp" 158 ,value_type warning_tol = 1e-8
159 ,value_type error_tol = 1e-3
197 ,
bool print_all_warnings
211 ,
bool print_all_warnings
216 bool fd_directional_check(
223 ,
bool print_all_warnings
230 #endif // NLP_FIRST_DERIVATIVES_TESTER_H STANDARD_MEMBER_COMPOSITION_MEMBERS(ETestingMethod, fd_testing_method)
Strategy interface for computing the product of the derivatives of the functions of an NLP along give...
bool finite_diff_check(NLP *nlp, const Vector &xo, const Vector *xl, const Vector *xu, const MatrixOp *Gc, const Vector *Gf, bool print_all_warnings, std::ostream *out) const
This function takes an NLP object and its computed derivatives and function values and validates the ...
NLP interface class {abstract}.
STANDARD_COMPOSITION_MEMBERS(CalcFiniteDiffProd, calc_fd_prod)
NLPFirstDerivTester(const calc_fd_prod_ptr_t &calc_fd_prod=Teuchos::rcp(new CalcFiniteDiffProd()), ETestingMethod fd_testing_method=FD_DIRECTIONAL, size_type num_fd_directions=1, value_type warning_tol=1e-8, value_type error_tol=1e-3)
Constructor.
Concrete class that tests the derivatives using finite differences.