ROL
Macros | Typedefs | Functions
step/interiorpoint/test_02.cpp File Reference

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[])
 

Detailed Description

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.

Macro Definition Documentation

◆ OPTIMIZATION_PROBLEM_REFACTOR

#define OPTIMIZATION_PROBLEM_REFACTOR

Definition at line 44 of file step/interiorpoint/test_02.cpp.

Typedef Documentation

◆ RealT

typedef double RealT

Definition at line 207 of file step/interiorpoint/test_02.cpp.

Function Documentation

◆ printVector()

template<class Real >
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().

◆ value()

template<class Real >
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().

◆ applyJacobian()

template<class Real >
void applyJacobian ( ROL::Vector< Real > &  jv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  sol 
)

◆ main()

int main ( int  argc,
char *  argv[] 
)