ROL
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ROL::TypeE::Algorithm< Real > Class Template Referenceabstract

#include <ROL_TypeE_Algorithm.hpp>

+ Inheritance diagram for ROL::TypeE::Algorithm< Real >:

Public Member Functions

virtual ~Algorithm ()
 
 Algorithm ()
 Constructor, given a step and a status test. More...
 
void setStatusTest (const Ptr< StatusTest< Real >> &status, bool combineStatus=false)
 
virtual void run (Problem< Real > &problem, std::ostream &outStream=std::cout)
 Run algorithm on equality constrained problems (Type-E). This is the primary Type-E interface. More...
 
virtual void run (Vector< Real > &x, Objective< Real > &obj, Constraint< Real > &econ, Vector< Real > &emul, std::ostream &outStream=std::cout)
 Run algorithm on equality constrained problems (Type-E). This is the primary Type-E interface. More...
 
virtual void run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, Constraint< Real > &econ, Vector< Real > &emul, const Vector< Real > &eres, std::ostream &outStream=std::cout)=0
 Run algorithm on equality constrained problems (Type-E). This general interface supports the use of dual optimization vector spaces, where the user does not define the dual() method. More...
 
virtual void run (Vector< Real > &x, Objective< Real > &obj, Constraint< Real > &econ, Vector< Real > &emul, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, std::ostream &outStream=std::cout)
 Run algorithm on equality constrained problems with explicit linear equality constraints (Type-E). This is the primary Type-E with explicit linear equality constraints interface. More...
 
virtual void run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, Constraint< Real > &econ, Vector< Real > &emul, const Vector< Real > &eres, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, const Vector< Real > &linear_eres, std::ostream &outStream=std::cout)
 Run algorithm on equality constrained problems with explicit linear equality constraints (Type-E). This general interface supports the use of dual optimization vector spaces, where the user does not define the dual() method. More...
 
virtual void writeHeader (std::ostream &os) const
 Print iterate header. More...
 
virtual void writeName (std::ostream &os) const
 Print step name. More...
 
virtual void writeOutput (std::ostream &os, const bool write_header=false) const
 Print iterate status. More...
 
virtual void writeExitStatus (std::ostream &os) const
 
Ptr< const AlgorithmState< Real > > getState () const
 
void reset ()
 

Protected Member Functions

void initialize (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &mul, const Vector< Real > &c)
 

Protected Attributes

const Ptr< CombinedStatusTest
< Real > > 
status_
 
const Ptr< AlgorithmState< Real > > state_
 

Detailed Description

template<typename Real>
class ROL::TypeE::Algorithm< Real >

Definition at line 88 of file ROL_TypeE_Algorithm.hpp.

Constructor & Destructor Documentation

template<typename Real >
virtual ROL::TypeE::Algorithm< Real >::~Algorithm ( )
inlinevirtual

Definition at line 100 of file ROL_TypeE_Algorithm.hpp.

template<typename Real >
ROL::TypeE::Algorithm< Real >::Algorithm ( )

Constructor, given a step and a status test.

Definition at line 56 of file ROL_TypeE_Algorithm_Def.hpp.

References ROL::TypeE::Algorithm< Real >::status_.

Member Function Documentation

template<typename Real >
void ROL::TypeE::Algorithm< Real >::initialize ( const Vector< Real > &  x,
const Vector< Real > &  g,
const Vector< Real > &  mul,
const Vector< Real > &  c 
)
protected
template<typename Real >
void ROL::TypeE::Algorithm< Real >::setStatusTest ( const Ptr< StatusTest< Real >> &  status,
bool  combineStatus = false 
)

Definition at line 97 of file ROL_TypeE_Algorithm_Def.hpp.

template<typename Real >
void ROL::TypeE::Algorithm< Real >::run ( Problem< Real > &  problem,
std::ostream &  outStream = std::cout 
)
virtual
template<typename Real >
void ROL::TypeE::Algorithm< Real >::run ( Vector< Real > &  x,
Objective< Real > &  obj,
Constraint< Real > &  econ,
Vector< Real > &  emul,
std::ostream &  outStream = std::cout 
)
virtual

Run algorithm on equality constrained problems (Type-E). This is the primary Type-E interface.

Definition at line 124 of file ROL_TypeE_Algorithm_Def.hpp.

References ROL::Problem< Real >::addConstraint(), and ROL::Problem< Real >::finalize().

template<typename Real >
virtual void ROL::TypeE::Algorithm< Real >::run ( Vector< Real > &  x,
const Vector< Real > &  g,
Objective< Real > &  obj,
Constraint< Real > &  econ,
Vector< Real > &  emul,
const Vector< Real > &  eres,
std::ostream &  outStream = std::cout 
)
pure virtual

Run algorithm on equality constrained problems (Type-E). This general interface supports the use of dual optimization vector spaces, where the user does not define the dual() method.

Implemented in ROL::TypeE::CompositeStepAlgorithm< Real >, ROL::TypeE::StabilizedLCLAlgorithm< Real >, ROL::TypeE::AugmentedLagrangianAlgorithm< Real >, and ROL::TypeE::FletcherAlgorithm< Real >.

template<typename Real >
void ROL::TypeE::Algorithm< Real >::run ( Vector< Real > &  x,
Objective< Real > &  obj,
Constraint< Real > &  econ,
Vector< Real > &  emul,
Constraint< Real > &  linear_econ,
Vector< Real > &  linear_emul,
std::ostream &  outStream = std::cout 
)
virtual

Run algorithm on equality constrained problems with explicit linear equality constraints (Type-E). This is the primary Type-E with explicit linear equality constraints interface.

Definition at line 137 of file ROL_TypeE_Algorithm_Def.hpp.

References ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), and ROL::Problem< Real >::finalize().

template<typename Real >
void ROL::TypeE::Algorithm< Real >::run ( Vector< Real > &  x,
const Vector< Real > &  g,
Objective< Real > &  obj,
Constraint< Real > &  econ,
Vector< Real > &  emul,
const Vector< Real > &  eres,
Constraint< Real > &  linear_econ,
Vector< Real > &  linear_emul,
const Vector< Real > &  linear_eres,
std::ostream &  outStream = std::cout 
)
virtual

Run algorithm on equality constrained problems with explicit linear equality constraints (Type-E). This general interface supports the use of dual optimization vector spaces, where the user does not define the dual() method.

Definition at line 153 of file ROL_TypeE_Algorithm_Def.hpp.

References ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().

template<typename Real >
void ROL::TypeE::Algorithm< Real >::writeHeader ( std::ostream &  os) const
virtual
template<typename Real >
void ROL::TypeE::Algorithm< Real >::writeName ( std::ostream &  os) const
virtual
template<typename Real >
void ROL::TypeE::Algorithm< Real >::writeOutput ( std::ostream &  os,
const bool  write_header = false 
) const
virtual
template<typename Real >
void ROL::TypeE::Algorithm< Real >::writeExitStatus ( std::ostream &  os) const
virtual
template<typename Real >
Ptr< const AlgorithmState< Real > > ROL::TypeE::Algorithm< Real >::getState ( void  ) const

Definition at line 236 of file ROL_TypeE_Algorithm_Def.hpp.

template<typename Real >
void ROL::TypeE::Algorithm< Real >::reset ( void  )

Definition at line 242 of file ROL_TypeE_Algorithm_Def.hpp.

Member Data Documentation

template<typename Real >
const Ptr<CombinedStatusTest<Real> > ROL::TypeE::Algorithm< Real >::status_
protected
template<typename Real >
const Ptr<AlgorithmState<Real> > ROL::TypeE::Algorithm< Real >::state_
protected

The documentation for this class was generated from the following files: