ROL
ROL::ROL::TypeE::Algorithm< Real > Class Template Referenceabstract

#include <ROL_Constraint_SerialSimOpt.hpp>

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

Public Member Functions

virtual ~Algorithm ()
 Algorithm ()
 Constructor, given a step and a status test.
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.
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.
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.
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.
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.
virtual void writeHeader (std::ostream &os) const
 Print iterate header.
virtual void writeName (std::ostream &os) const
 Print step name.
virtual void writeOutput (std::ostream &os, const bool write_header=false) const
 Print iterate status.
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::ROL::TypeE::Algorithm< Real >

Definition at line 54 of file ROL_Constraint_SerialSimOpt.hpp.

Constructor & Destructor Documentation

◆ ~Algorithm()

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

Definition at line 66 of file ROL_Constraint_SerialSimOpt.hpp.

◆ Algorithm()

Member Function Documentation

◆ initialize()

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

Definition at line 30 of file ROL_Constraint_SerialSimOpt.hpp.

◆ setStatusTest()

template<typename Real>
void ROL::TypeE::Algorithm< Real >::setStatusTest ( const Ptr< StatusTest< Real > > & status,
bool combineStatus = false )

Definition at line 63 of file ROL_Constraint_SerialSimOpt.hpp.

◆ run() [1/5]

template<typename Real>
void ROL::TypeE::Algorithm< Real >::run ( Problem< Real > & problem,
std::ostream & outStream = std::cout )
virtual

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

Reimplemented in ROL::TypeE::StabilizedLCLAlgorithm< Real >.

Definition at line 72 of file ROL_Constraint_SerialSimOpt.hpp.

◆ run() [2/5]

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 90 of file ROL_Constraint_SerialSimOpt.hpp.

◆ run() [3/5]

template<typename Real>
virtual void ROL::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::ROL::TypeE::CompositeStepAlgorithm< Real >.

◆ run() [4/5]

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 103 of file ROL_Constraint_SerialSimOpt.hpp.

◆ run() [5/5]

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 119 of file ROL_Constraint_SerialSimOpt.hpp.

◆ writeHeader()

◆ writeName()

◆ writeOutput()

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

◆ writeExitStatus()

template<typename Real>
void ROL::TypeE::Algorithm< Real >::writeExitStatus ( std::ostream & os) const
virtual

Definition at line 193 of file ROL_Constraint_SerialSimOpt.hpp.

◆ getState()

template<typename Real>
Ptr< const AlgorithmState< Real > > ROL::TypeE::Algorithm< Real >::getState ( ) const

Definition at line 202 of file ROL_Constraint_SerialSimOpt.hpp.

◆ reset()

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

Definition at line 208 of file ROL_Constraint_SerialSimOpt.hpp.

Member Data Documentation

◆ status_

◆ state_


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