ROL
|
Perform a finite difference check on for the Hessian of the Lagrangian resulting from a Type-EB problem. Note that this test has a required dependence on Sacado. NOTE: The finite difference check can only be expected to pass if the system is not symmetrized and all bounds are finite. More...
#include "Teuchos_GlobalMPISession.hpp"
#include "ROL_RandomVector.hpp"
#include "ROL_StdVector.hpp"
#include "ROL_NonlinearProgram.hpp"
#include "ROL_OptimizationProblem.hpp"
#include "ROL_InteriorPointPenalty.hpp"
#include "ROL_PrimalDualInteriorPointResidual.hpp"
#include "HS_Problem_041.hpp"
#include <iomanip>
Go to the source code of this file.
Macros | |
#define | OPTIMIZATION_PROBLEM_REFACTOR |
Typedefs | |
typedef double | RealT |
Functions | |
template<class Real > | |
void | printVector (const ROL::Vector< Real > &x, std::ostream &outStream) |
template<class Real > | |
void | value (ROL::Vector< Real > &c, const ROL::Vector< Real > &sol, const Real &mu) |
template<class Real > | |
void | applyJacobian (ROL::Vector< Real > &jv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &sol) |
int | main (int argc, char *argv[]) |
Perform a finite difference check on for the Hessian of the Lagrangian resulting from a Type-EB problem. Note that this test has a required dependence on Sacado. NOTE: The finite difference check can only be expected to pass if the system is not symmetrized and all bounds are finite.
Definition in file step/interiorpoint/test_02.cpp.
#define OPTIMIZATION_PROBLEM_REFACTOR |
Definition at line 44 of file step/interiorpoint/test_02.cpp.
typedef double RealT |
Definition at line 207 of file step/interiorpoint/test_02.cpp.
void printVector | ( | const ROL::Vector< Real > & | x, |
std::ostream & | outStream ) |
Definition at line 70 of file step/interiorpoint/test_02.cpp.
References printVector().
Referenced by main(), and printVector().
void value | ( | ROL::Vector< Real > & | c, |
const ROL::Vector< Real > & | sol, | ||
const Real & | mu ) |
Definition at line 101 of file step/interiorpoint/test_02.cpp.
Referenced by main().
void applyJacobian | ( | ROL::Vector< Real > & | jv, |
const ROL::Vector< Real > & | v, | ||
const ROL::Vector< Real > & | sol ) |
Definition at line 152 of file step/interiorpoint/test_02.cpp.
Referenced by ROL::BinaryConstraint< Real >::applyAdjointJacobian(), ROL::StdConstraint< Real >::applyJacobian(), ROL::Constraint< Real >::checkAdjointConsistencyJacobian(), ROL::Constraint< Real >::checkApplyJacobian(), main(), and ROL::Constraint< Real >::solveAugmentedSystem().
int main | ( | int | argc, |
char * | argv[] ) |
Definition at line 209 of file step/interiorpoint/test_02.cpp.
References applyJacobian(), printVector(), ROL::RandomizeVector(), and value().