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

Provides an interface to run optimization algorithms to minimize composite optimization problems f+phi. More...

#include <ROL_TypeP_Algorithm.hpp>

Inheritance diagram for ROL::TypeP::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 unconstrained problems (Type-U). This is the primary Type-U interface.
virtual void run (Vector< Real > &x, Objective< Real > &sobj, Objective< Real > &nobj, std::ostream &outStream=std::cout)
 Run algorithm on unconstrained problems (Type-U). This is the primary Type-U interface.
virtual void run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &sobj, Objective< Real > &nobj, std::ostream &outStream=std::cout)=0
 Run algorithm on unconstrained problems (Type-U). 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, 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)
void pgstep (Vector< Real > &pgiter, Vector< Real > &pgstep, Objective< Real > &nobj, const Vector< Real > &x, const Vector< Real > &dg, Real t, Real &tol) const

Protected Attributes

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

Detailed Description

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

Provides an interface to run optimization algorithms to minimize composite optimization problems f+phi.

Definition at line 56 of file ROL_TypeP_Algorithm.hpp.

Constructor & Destructor Documentation

◆ ~Algorithm()

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

Definition at line 72 of file ROL_TypeP_Algorithm.hpp.

◆ Algorithm()

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

Constructor, given a step and a status test.

Definition at line 20 of file ROL_TypeP_Algorithm_Def.hpp.

References state_, and status_.

Member Function Documentation

◆ initialize()

◆ pgstep()

◆ setStatusTest()

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

Definition at line 62 of file ROL_TypeP_Algorithm_Def.hpp.

References status_.

◆ run() [1/3]

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

◆ run() [2/3]

template<typename Real>
void ROL::TypeP::Algorithm< Real >::run ( Vector< Real > & x,
Objective< Real > & sobj,
Objective< Real > & nobj,
std::ostream & outStream = std::cout )
virtual

Run algorithm on unconstrained problems (Type-U). This is the primary Type-U interface.

Definition at line 86 of file ROL_TypeP_Algorithm_Def.hpp.

References ROL::Vector< Real >::dual(), and run().

Referenced by run().

◆ run() [3/3]

template<typename Real>
virtual void ROL::TypeP::Algorithm< Real >::run ( Vector< Real > & x,
const Vector< Real > & g,
Objective< Real > & sobj,
Objective< Real > & nobj,
std::ostream & outStream = std::cout )
pure virtual

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

Implemented in ROL::TypeP::InexactNewtonAlgorithm< Real >, ROL::TypeP::iPianoAlgorithm< Real >, ROL::TypeP::ProxGradientAlgorithm< Real >, ROL::TypeP::QuasiNewtonAlgorithm< Real >, ROL::TypeP::SpectralGradientAlgorithm< Real >, and ROL::TypeP::TrustRegionAlgorithm< Real >.

◆ writeHeader()

◆ writeName()

◆ writeOutput()

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

◆ writeExitStatus()

◆ getState()

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

Definition at line 149 of file ROL_TypeP_Algorithm_Def.hpp.

References state_.

◆ reset()

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

Member Data Documentation

◆ status_

◆ state_

template<typename Real>
const Ptr<AlgorithmState<Real> > ROL::TypeP::Algorithm< Real >::state_
protected

Definition at line 59 of file ROL_TypeP_Algorithm.hpp.

Referenced by Algorithm(), ROL::TypeP::TrustRegionAlgorithm< Real >::computeGradient(), ROL::TypeP::TrustRegionAlgorithm< Real >::computeValue(), ROL::TypeP::TrustRegionAlgorithm< Real >::dbls(), ROL::TypeP::TrustRegionAlgorithm< Real >::dcauchy(), ROL::TypeP::TrustRegionAlgorithm< Real >::dncg(), ROL::TypeP::TrustRegionAlgorithm< Real >::dprox(), ROL::TypeP::TrustRegionAlgorithm< Real >::dspg(), ROL::TypeP::TrustRegionAlgorithm< Real >::dspg2(), getState(), initialize(), ROL::TypeP::InexactNewtonAlgorithm< Real >::initialize(), ROL::TypeP::iPianoAlgorithm< Real >::initialize(), ROL::TypeP::ProxGradientAlgorithm< Real >::initialize(), ROL::TypeP::QuasiNewtonAlgorithm< Real >::initialize(), ROL::TypeP::SpectralGradientAlgorithm< Real >::initialize(), ROL::TypeP::TrustRegionAlgorithm< Real >::initialize(), pgstep(), reset(), ROL::TypeP::InexactNewtonAlgorithm< Real >::run(), ROL::TypeP::iPianoAlgorithm< Real >::run(), ROL::TypeP::ProxGradientAlgorithm< Real >::run(), ROL::TypeP::QuasiNewtonAlgorithm< Real >::run(), ROL::TypeP::SpectralGradientAlgorithm< Real >::run(), ROL::TypeP::TrustRegionAlgorithm< Real >::run(), ROL::TypeP::TrustRegionAlgorithm< Real >::TrustRegionAlgorithm(), writeExitStatus(), writeOutput(), ROL::TypeP::InexactNewtonAlgorithm< Real >::writeOutput(), ROL::TypeP::iPianoAlgorithm< Real >::writeOutput(), ROL::TypeP::ProxGradientAlgorithm< Real >::writeOutput(), ROL::TypeP::QuasiNewtonAlgorithm< Real >::writeOutput(), ROL::TypeP::SpectralGradientAlgorithm< Real >::writeOutput(), and ROL::TypeP::TrustRegionAlgorithm< Real >::writeOutput().


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