|
ROL
|
Provides the interface for and implements a bundle. More...
#include <ROL_Bundle.hpp>
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_ |
Provides the interface for and implements a bundle.
Definition at line 28 of file ROL_Bundle.hpp.
|
inlinevirtual |
Definition at line 90 of file ROL_Bundle.hpp.
|
inline |
Definition at line 92 of file ROL_Bundle.hpp.
References coeff_, distanceMeasures_, dualVariables_, isInitialized_, linearizationErrors_, maxSize_, omega_, remSize_, ROL::ROL_OVERFLOW(), size_, subgradients_, and zero.
Referenced by ROL::Bundle_AS< Real >::Bundle_AS(), and ROL::Bundle_TT< Real >::Bundle_TT().
|
inlineprivate |
Definition at line 54 of file ROL_Bundle.hpp.
References distanceMeasures_, dualVariables_, linearizationErrors_, ROL::ROL_OVERFLOW(), size_, subgradients_, and zero.
Referenced by reset().
|
inlineprivate |
Definition at line 77 of file ROL_Bundle.hpp.
References distanceMeasures_, dualVariables_, linearizationErrors_, size_, subgradients_, and zero.
Referenced by reset().
|
inlinevirtual |
Reimplemented in ROL::Bundle_AS< Real >.
Definition at line 112 of file ROL_Bundle.hpp.
References ROL::Vector< Real >::clone(), distanceMeasures_, dualVariables_, eG_, ge_, gx_, isInitialized_, linearizationErrors_, maxSize_, size_, subgradients_, tG_, yG_, and zero.
Referenced by ROL::Bundle_AS< Real >::initialize().
|
pure virtual |
Implemented in ROL::Bundle_AS< Real >, and ROL::Bundle_TT< Real >.
|
inline |
Definition at line 134 of file ROL_Bundle.hpp.
References linearizationErrors_.
|
inline |
Definition at line 138 of file ROL_Bundle.hpp.
References distanceMeasures_.
|
inline |
Definition at line 142 of file ROL_Bundle.hpp.
References subgradients_.
Referenced by addGi(), ROL::Bundle_AS< Real >::applyFullMatrix(), ROL::Bundle_AS< Real >::applyMatrix(), dotGi(), evaluateObjective(), GiGj(), ROL::Bundle_TT< Real >::GiGj(), and solveDual_dim2().
|
inline |
Definition at line 146 of file ROL_Bundle.hpp.
References dualVariables_.
Referenced by ROL::Bundle_AS< Real >::initializeDualSolver(), ROL::Bundle_AS< Real >::solveDual_arbitrary(), solveDual_dim2(), and ROL::Bundle_TT< Real >::solveDual_TT().
|
inline |
Definition at line 150 of file ROL_Bundle.hpp.
References dualVariables_.
Referenced by ROL::Bundle_AS< Real >::initializeDualSolver(), ROL::Bundle_AS< Real >::solveDual_arbitrary(), solveDual_dim1(), solveDual_dim2(), and ROL::Bundle_TT< Real >::solveDual_TT().
|
inline |
Definition at line 154 of file ROL_Bundle.hpp.
References dualVariables_, size_, and zero.
Referenced by ROL::Bundle_TT< Real >::solveDual_TT().
|
inline |
Definition at line 159 of file ROL_Bundle.hpp.
References alpha(), coeff_, omega_, and ROL::ROL_EPSILON().
Referenced by alpha().
|
inline |
Definition at line 167 of file ROL_Bundle.hpp.
References computeAlpha(), distanceMeasures_, and linearizationErrors_.
Referenced by ROL::Bundle_TT< Real >::addSubgradToBase(), computeAlpha(), ROL::Bundle_AS< Real >::computeStepSize(), evaluateObjective(), ROL::Bundle_AS< Real >::projectedCG(), ROL::Bundle_AS< Real >::solveDual_arbitrary(), solveDual_dim2(), and ROL::Bundle_TT< Real >::solveDual_TT().
|
inline |
Definition at line 171 of file ROL_Bundle.hpp.
References size_.
Referenced by ROL::Bundle_AS< Real >::computeCriticality(), ROL::Bundle_AS< Real >::computeStepSize(), evaluateObjective(), ROL::Bundle_AS< Real >::isNonnegative(), ROL::Bundle_AS< Real >::project(), ROL::Bundle_AS< Real >::solveDual(), ROL::Bundle_TT< Real >::solveDual(), ROL::Bundle_AS< Real >::solveDual_arbitrary(), ROL::Bundle_AS< Real >::solveEQPsubproblem(), and ROL::Bundle_TT< Real >::solveSystem().
|
inline |
Definition at line 175 of file ROL_Bundle.hpp.
References distanceMeasures_, dualVariables_, eG_, linearizationErrors_, ROL::Vector< Real >::set(), size_, subgradients_, tG_, yG_, ROL::Vector< Real >::zero(), and zero.
|
inline |
Definition at line 201 of file ROL_Bundle.hpp.
References add(), linearizationErrors_, maxSize_, remove(), remSize_, ROL::ROL_EPSILON(), and size_.
|
inline |
Definition at line 228 of file ROL_Bundle.hpp.
References distanceMeasures_, ROL::Vector< Real >::dual(), dualVariables_, linearizationErrors_, size_, subgradients_, and zero.
|
inlineprotected |
Definition at line 254 of file ROL_Bundle.hpp.
References subgradient().
Referenced by ROL::Bundle_AS< Real >::applyG_Jacobi(), ROL::Bundle_AS< Real >::applyG_SymGS(), ROL::Bundle_AS< Real >::applyPreconditioner_Jacobi(), and ROL::Bundle_AS< Real >::applyPreconditioner_SymGS().
|
inlineprotected |
Definition at line 258 of file ROL_Bundle.hpp.
References ROL::Vector< Real >::dot(), and subgradient().
Referenced by ROL::Bundle_AS< Real >::applyFullMatrix(), ROL::Bundle_AS< Real >::applyMatrix(), ROL::Bundle_AS< Real >::applyPreconditioner_SymGS(), evaluateObjective(), and solveDual_dim2().
|
inlineprotected |
Definition at line 262 of file ROL_Bundle.hpp.
References ROL::Vector< Real >::axpy(), and subgradient().
Referenced by ROL::Bundle_AS< Real >::applyPreconditioner_SymGS(), and solveDual_dim2().
|
inlineprotected |
Definition at line 266 of file ROL_Bundle.hpp.
References alpha(), dotGi(), eG_, gx_, size(), subgradient(), tG_, and yG_.
Referenced by ROL::Bundle_AS< Real >::solveDual_arbitrary().
|
inlineprotected |
Definition at line 293 of file ROL_Bundle.hpp.
References setDualVariable().
Referenced by ROL::Bundle_AS< Real >::solveDual(), and ROL::Bundle_TT< Real >::solveDual().
|
inlineprotected |
Definition at line 299 of file ROL_Bundle.hpp.
References addGi(), alpha(), dotGi(), getDualVariable(), gx_, ROL::ROL_EPSILON(), setDualVariable(), subgradient(), and zero.
Referenced by ROL::Bundle_AS< Real >::solveDual(), and ROL::Bundle_TT< Real >::solveDual().
|
private |
Definition at line 33 of file ROL_Bundle.hpp.
Referenced by add(), aggregate(), Bundle(), initialize(), remove(), subgradient(), and update().
|
private |
Definition at line 34 of file ROL_Bundle.hpp.
Referenced by add(), aggregate(), alpha(), Bundle(), initialize(), linearizationError(), remove(), reset(), and update().
|
private |
Definition at line 35 of file ROL_Bundle.hpp.
Referenced by add(), aggregate(), alpha(), Bundle(), distanceMeasure(), initialize(), remove(), and update().
|
private |
Definition at line 37 of file ROL_Bundle.hpp.
Referenced by add(), aggregate(), Bundle(), getDualVariable(), initialize(), remove(), resetDualVariables(), setDualVariable(), and update().
|
private |
Definition at line 39 of file ROL_Bundle.hpp.
Referenced by aggregate(), evaluateObjective(), and initialize().
|
private |
Definition at line 40 of file ROL_Bundle.hpp.
Referenced by aggregate(), evaluateObjective(), and initialize().
|
private |
Definition at line 41 of file ROL_Bundle.hpp.
Referenced by aggregate(), evaluateObjective(), and initialize().
|
private |
Definition at line 42 of file ROL_Bundle.hpp.
Referenced by evaluateObjective(), initialize(), and solveDual_dim2().
|
private |
Definition at line 43 of file ROL_Bundle.hpp.
Referenced by initialize().
|
private |
Definition at line 45 of file ROL_Bundle.hpp.
Referenced by add(), aggregate(), Bundle(), initialize(), remove(), reset(), resetDualVariables(), size(), and update().
|
private |
Definition at line 47 of file ROL_Bundle.hpp.
Referenced by Bundle(), initialize(), and reset().
|
private |
Definition at line 48 of file ROL_Bundle.hpp.
|
private |
Definition at line 49 of file ROL_Bundle.hpp.
Referenced by Bundle(), and computeAlpha().
|
private |
Definition at line 50 of file ROL_Bundle.hpp.
Referenced by Bundle(), and computeAlpha().
|
private |
Definition at line 52 of file ROL_Bundle.hpp.
Referenced by Bundle(), and initialize().