ROL
test_03.cpp File Reference

Verify that the symmetrized version of a primal dual system is indeed symmetric and that the solution to the unsymmetrized version satisfies the symmetrized version. 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 "ROL_LinearOperatorFromConstraint.hpp"
#include "ROL_KrylovFactory.hpp"
#include "HS_ProblemFactory.hpp"
#include <iomanip>

Go to the source code of this file.

Classes

class  IdentityOperator< Real >

Macros

#define OPTIMIZATION_PROBLEM_REFACTOR

Functions

template<class Real>
void printVector (const ROL::Vector< Real > &x, std::ostream &outStream)
template<class Real>
void printMatrix (const std::vector< ROL::Ptr< ROL::Vector< Real > > > &A, const std::vector< ROL::Ptr< ROL::Vector< Real > > > &I, std::ostream &outStream)
int main (int argc, char *argv[])

Detailed Description

Verify that the symmetrized version of a primal dual system is indeed symmetric and that the solution to the unsymmetrized version satisfies the symmetrized version.

Note: CG will almost certainly fail with exit flag 2 (negative eigenvalues)

Definition in file step/interiorpoint/test_03.cpp.

Macro Definition Documentation

◆ OPTIMIZATION_PROBLEM_REFACTOR

#define OPTIMIZATION_PROBLEM_REFACTOR

Definition at line 10 of file step/interiorpoint/test_03.cpp.

Function Documentation

◆ printVector()

template<class Real>
void printVector ( const ROL::Vector< Real > & x,
std::ostream & outStream )

Definition at line 38 of file step/interiorpoint/test_03.cpp.

References printVector().

Referenced by printVector().

◆ printMatrix()

template<class Real>
void printMatrix ( const std::vector< ROL::Ptr< ROL::Vector< Real > > > & A,
const std::vector< ROL::Ptr< ROL::Vector< Real > > > & I,
std::ostream & outStream )

Definition at line 66 of file step/interiorpoint/test_03.cpp.

References dim.

Referenced by main().

◆ main()

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