ROL
ROL::TypeU::BundleAlgorithm< Real > Class Template Reference

Provides an interface to run trust-bundle methods for unconstrained optimization algorithms. More...

#include <ROL_TypeU_BundleAlgorithm.hpp>

Inheritance diagram for ROL::TypeU::BundleAlgorithm< Real >:

Public Member Functions

 BundleAlgorithm (ParameterList &parlist, const Ptr< LineSearch_U< Real > > &lineSearch=nullPtr)
void run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, std::ostream &outStream=std::cout) override
void writeHeader (std::ostream &os) const override
 Print iterate header.
void writeName (std::ostream &os) const override
 Print step name.
void writeOutput (std::ostream &os, const bool print_header=false) const override
 Print iterate status.
Public Member Functions inherited from ROL::ROL::TypeU::Algorithm< Real >
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 > &obj, 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 > &obj, Constraint< Real > &linear_con, Vector< Real > &linear_mul, std::ostream &outStream=std::cout)
 Run algorithm on unconstrained problems with explicit linear equality constraints (Type-U). This is the primary Type-U with explicit linear equality constraints interface.
virtual void run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, Constraint< Real > &linear_con, Vector< Real > &linear_mul, const Vector< Real > &linear_c, std::ostream &outStream=std::cout)
 Run algorithm on unconstrained problems with explicit linear equality constraints (Type-U). 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, const Vector< Real > &g, Objective< Real > &obj, 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 writeExitStatus (std::ostream &os) const
Ptr< const AlgorithmState< Real > > getState () const
void reset ()

Private Member Functions

void initialize (const Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, std::ostream &outStream=std::cout)

Private Attributes

Ptr< Bundle_U< Real > > bundle_
Ptr< LineSearch_U< Real > > lineSearch_
unsigned QPiter_
unsigned QPmaxit_
Real QPtol_
int step_flag_
Real T_
Real tol_
Real m1_
Real m2_
Real m3_
Real nu_
int ls_maxit_
bool first_print_
bool isConvex_
int verbosity_
bool printHeader_

Additional Inherited Members

Protected Member Functions inherited from ROL::ROL::TypeU::Algorithm< Real >
void initialize (const Vector< Real > &x, const Vector< Real > &g)
Protected Attributes inherited from ROL::ROL::TypeU::Algorithm< Real >
const Ptr< CombinedStatusTest< Real > > status_
const Ptr< AlgorithmState< Real > > state_

Detailed Description

template<typename Real>
class ROL::TypeU::BundleAlgorithm< Real >

Provides an interface to run trust-bundle methods for unconstrained optimization algorithms.

Definition at line 26 of file ROL_TypeU_BundleAlgorithm.hpp.

Constructor & Destructor Documentation

◆ BundleAlgorithm()

Member Function Documentation

◆ run()

◆ writeHeader()

template<typename Real>
void ROL::TypeU::BundleAlgorithm< Real >::writeHeader ( std::ostream & os) const
overridevirtual

Print iterate header.

Reimplemented from ROL::ROL::TypeU::Algorithm< Real >.

Definition at line 353 of file ROL_TypeU_BundleAlgorithm_Def.hpp.

Referenced by writeOutput().

◆ writeName()

template<typename Real>
void ROL::TypeU::BundleAlgorithm< Real >::writeName ( std::ostream & os) const
overridevirtual

Print step name.

Reimplemented from ROL::ROL::TypeU::Algorithm< Real >.

Definition at line 371 of file ROL_TypeU_BundleAlgorithm_Def.hpp.

Referenced by writeOutput().

◆ writeOutput()

template<typename Real>
void ROL::TypeU::BundleAlgorithm< Real >::writeOutput ( std::ostream & os,
const bool write_header = false ) const
overridevirtual

Print iterate status.

Reimplemented from ROL::ROL::TypeU::Algorithm< Real >.

Definition at line 378 of file ROL_TypeU_BundleAlgorithm_Def.hpp.

References first_print_, QPiter_, ROL::ROL::TypeU::Algorithm< Real >::state_, step_flag_, writeHeader(), and writeName().

Referenced by run().

◆ initialize()

template<typename Real>
void ROL::TypeU::BundleAlgorithm< Real >::initialize ( const Vector< Real > & x,
const Vector< Real > & g,
Objective< Real > & obj,
std::ostream & outStream = std::cout )
private

Member Data Documentation

◆ bundle_

template<typename Real>
Ptr<Bundle_U<Real> > ROL::TypeU::BundleAlgorithm< Real >::bundle_
private

Definition at line 29 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), initialize(), and run().

◆ lineSearch_

template<typename Real>
Ptr<LineSearch_U<Real> > ROL::TypeU::BundleAlgorithm< Real >::lineSearch_
private

Definition at line 30 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), initialize(), and run().

◆ QPiter_

template<typename Real>
unsigned ROL::TypeU::BundleAlgorithm< Real >::QPiter_
private

Definition at line 33 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), run(), and writeOutput().

◆ QPmaxit_

template<typename Real>
unsigned ROL::TypeU::BundleAlgorithm< Real >::QPmaxit_
private

Definition at line 34 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ QPtol_

template<typename Real>
Real ROL::TypeU::BundleAlgorithm< Real >::QPtol_
private

Definition at line 35 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ step_flag_

template<typename Real>
int ROL::TypeU::BundleAlgorithm< Real >::step_flag_
private

Definition at line 38 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), run(), and writeOutput().

◆ T_

template<typename Real>
Real ROL::TypeU::BundleAlgorithm< Real >::T_
private

Definition at line 43 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ tol_

template<typename Real>
Real ROL::TypeU::BundleAlgorithm< Real >::tol_
private

Definition at line 44 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ m1_

template<typename Real>
Real ROL::TypeU::BundleAlgorithm< Real >::m1_
private

Definition at line 45 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ m2_

template<typename Real>
Real ROL::TypeU::BundleAlgorithm< Real >::m2_
private

Definition at line 46 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ m3_

template<typename Real>
Real ROL::TypeU::BundleAlgorithm< Real >::m3_
private

Definition at line 47 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ nu_

template<typename Real>
Real ROL::TypeU::BundleAlgorithm< Real >::nu_
private

Definition at line 48 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ ls_maxit_

template<typename Real>
int ROL::TypeU::BundleAlgorithm< Real >::ls_maxit_
private

Definition at line 51 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ first_print_

template<typename Real>
bool ROL::TypeU::BundleAlgorithm< Real >::first_print_
private

Definition at line 53 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), run(), and writeOutput().

◆ isConvex_

template<typename Real>
bool ROL::TypeU::BundleAlgorithm< Real >::isConvex_
private

Definition at line 54 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), initialize(), and run().

◆ verbosity_

template<typename Real>
int ROL::TypeU::BundleAlgorithm< Real >::verbosity_
private

Definition at line 56 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().

◆ printHeader_

template<typename Real>
bool ROL::TypeU::BundleAlgorithm< Real >::printHeader_
private

Definition at line 57 of file ROL_TypeU_BundleAlgorithm.hpp.

Referenced by BundleAlgorithm(), and run().


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