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

Provides the interface for and implements a bundle. More...

#include <ROL_Bundle.hpp>

+ Inheritance diagram for ROL::Bundle< Real >:

Public Member Functions

virtual ~Bundle (void)
 
 Bundle (const unsigned maxSize=10, const Real coeff=0.0, const Real omega=2.0, const unsigned remSize=2)
 
virtual void initialize (const Vector< Real > &g)
 
virtual unsigned solveDual (const Real t, const unsigned maxit=1000, const Real tol=1.e-8)=0
 
const Real linearizationError (const unsigned i) const
 
const Real distanceMeasure (const unsigned i) const
 
const Vector< Real > & subgradient (const unsigned i) const
 
const Real getDualVariable (const unsigned i) const
 
void setDualVariable (const unsigned i, const Real val)
 
void resetDualVariables (void)
 
const Real computeAlpha (const Real dm, const Real le) const
 
const Real alpha (const unsigned i) const
 
unsigned size (void) const
 
void aggregate (Vector< Real > &aggSubGrad, Real &aggLinErr, Real &aggDistMeas) const
 
void reset (const Vector< Real > &g, const Real le, const Real dm)
 
void update (const bool flag, const Real linErr, const Real distMeas, const Vector< Real > &g, const Vector< Real > &s)
 

Protected Member Functions

const Real GiGj (const unsigned i, const unsigned j) const
 
const Real dotGi (const unsigned i, const Vector< Real > &x) const
 
void addGi (const unsigned i, const Real a, Vector< Real > &x) const
 
Real evaluateObjective (std::vector< Real > &g, const std::vector< Real > &x, const Real t) const
 
unsigned solveDual_dim1 (const Real t, const unsigned maxit=1000, const Real tol=1.e-8)
 
unsigned solveDual_dim2 (const Real t, const unsigned maxit=1000, const Real tol=1.e-8)
 

Private Member Functions

void remove (const std::vector< unsigned > &ind)
 
void add (const Vector< Real > &g, const Real le, const Real dm)
 

Private Attributes

std::vector< ROL::Ptr< Vector
< Real > > > 
subgradients_
 
std::vector< Real > linearizationErrors_
 
std::vector< Real > distanceMeasures_
 
std::vector< Real > dualVariables_
 
ROL::Ptr< Vector< Real > > tG_
 
ROL::Ptr< Vector< Real > > eG_
 
ROL::Ptr< Vector< Real > > yG_
 
ROL::Ptr< Vector< Real > > gx_
 
ROL::Ptr< Vector< Real > > ge_
 
unsigned size_
 
unsigned maxSize_
 
unsigned remSize_
 
Real coeff_
 
Real omega_
 
bool isInitialized_
 

Detailed Description

template<class Real>
class ROL::Bundle< Real >

Provides the interface for and implements a bundle.

Definition at line 28 of file ROL_Bundle.hpp.

Constructor & Destructor Documentation

template<class Real >
virtual ROL::Bundle< Real >::~Bundle ( void  )
inlinevirtual

Definition at line 90 of file ROL_Bundle.hpp.

template<class Real >
ROL::Bundle< Real >::Bundle ( const unsigned  maxSize = 10,
const Real  coeff = 0.0,
const Real  omega = 2.0,
const unsigned  remSize = 2 
)
inline

Member Function Documentation

template<class Real >
void ROL::Bundle< Real >::remove ( const std::vector< unsigned > &  ind)
inlineprivate
template<class Real >
void ROL::Bundle< Real >::add ( const Vector< Real > &  g,
const Real  le,
const Real  dm 
)
inlineprivate
template<class Real >
virtual void ROL::Bundle< Real >::initialize ( const Vector< Real > &  g)
inlinevirtual
template<class Real >
virtual unsigned ROL::Bundle< Real >::solveDual ( const Real  t,
const unsigned  maxit = 1000,
const Real  tol = 1.e-8 
)
pure virtual
template<class Real >
const Real ROL::Bundle< Real >::linearizationError ( const unsigned  i) const
inline

Definition at line 134 of file ROL_Bundle.hpp.

References ROL::Bundle< Real >::linearizationErrors_.

template<class Real >
const Real ROL::Bundle< Real >::distanceMeasure ( const unsigned  i) const
inline

Definition at line 138 of file ROL_Bundle.hpp.

References ROL::Bundle< Real >::distanceMeasures_.

template<class Real >
const Vector<Real>& ROL::Bundle< Real >::subgradient ( const unsigned  i) const
inline
template<class Real >
const Real ROL::Bundle< Real >::getDualVariable ( const unsigned  i) const
inline
template<class Real >
void ROL::Bundle< Real >::setDualVariable ( const unsigned  i,
const Real  val 
)
inline
template<class Real >
void ROL::Bundle< Real >::resetDualVariables ( void  )
inline
template<class Real >
const Real ROL::Bundle< Real >::computeAlpha ( const Real  dm,
const Real  le 
) const
inline
template<class Real >
const Real ROL::Bundle< Real >::alpha ( const unsigned  i) const
inline
template<class Real >
unsigned ROL::Bundle< Real >::size ( void  ) const
inline
template<class Real >
void ROL::Bundle< Real >::aggregate ( Vector< Real > &  aggSubGrad,
Real &  aggLinErr,
Real &  aggDistMeas 
) const
inline
template<class Real >
void ROL::Bundle< Real >::reset ( const Vector< Real > &  g,
const Real  le,
const Real  dm 
)
inline
template<class Real >
void ROL::Bundle< Real >::update ( const bool  flag,
const Real  linErr,
const Real  distMeas,
const Vector< Real > &  g,
const Vector< Real > &  s 
)
inline
template<class Real >
const Real ROL::Bundle< Real >::GiGj ( const unsigned  i,
const unsigned  j 
) const
inlineprotected
template<class Real >
const Real ROL::Bundle< Real >::dotGi ( const unsigned  i,
const Vector< Real > &  x 
) const
inlineprotected
template<class Real >
void ROL::Bundle< Real >::addGi ( const unsigned  i,
const Real  a,
Vector< Real > &  x 
) const
inlineprotected
template<class Real >
Real ROL::Bundle< Real >::evaluateObjective ( std::vector< Real > &  g,
const std::vector< Real > &  x,
const Real  t 
) const
inlineprotected
template<class Real >
unsigned ROL::Bundle< Real >::solveDual_dim1 ( const Real  t,
const unsigned  maxit = 1000,
const Real  tol = 1.e-8 
)
inlineprotected
template<class Real >
unsigned ROL::Bundle< Real >::solveDual_dim2 ( const Real  t,
const unsigned  maxit = 1000,
const Real  tol = 1.e-8 
)
inlineprotected

Member Data Documentation

template<class Real >
std::vector<ROL::Ptr<Vector<Real> > > ROL::Bundle< Real >::subgradients_
private
template<class Real >
std::vector<Real> ROL::Bundle< Real >::linearizationErrors_
private
template<class Real >
std::vector<Real> ROL::Bundle< Real >::distanceMeasures_
private
template<class Real >
std::vector<Real> ROL::Bundle< Real >::dualVariables_
private
template<class Real >
ROL::Ptr<Vector<Real> > ROL::Bundle< Real >::tG_
private
template<class Real >
ROL::Ptr<Vector<Real> > ROL::Bundle< Real >::eG_
private
template<class Real >
ROL::Ptr<Vector<Real> > ROL::Bundle< Real >::yG_
private
template<class Real >
ROL::Ptr<Vector<Real> > ROL::Bundle< Real >::gx_
private
template<class Real >
ROL::Ptr<Vector<Real> > ROL::Bundle< Real >::ge_
private

Definition at line 43 of file ROL_Bundle.hpp.

Referenced by ROL::Bundle< Real >::initialize().

template<class Real >
unsigned ROL::Bundle< Real >::size_
private
template<class Real >
unsigned ROL::Bundle< Real >::maxSize_
private
template<class Real >
unsigned ROL::Bundle< Real >::remSize_
private

Definition at line 48 of file ROL_Bundle.hpp.

Referenced by ROL::Bundle< Real >::Bundle(), and ROL::Bundle< Real >::reset().

template<class Real >
Real ROL::Bundle< Real >::coeff_
private
template<class Real >
Real ROL::Bundle< Real >::omega_
private
template<class Real >
bool ROL::Bundle< Real >::isInitialized_
private

Definition at line 52 of file ROL_Bundle.hpp.

Referenced by ROL::Bundle< Real >::initialize().


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