ROL
ROL::ROL::TrustRegionModel_U< Real > Class Template Reference

#include <ROL_Constraint_SerialSimOpt.hpp>

Inheritance diagram for ROL::ROL::TrustRegionModel_U< Real >:

Public Member Functions

virtual ~TrustRegionModel_U ()
 TrustRegionModel_U (ParameterList &list, const Ptr< Secant< Real > > &secant=nullPtr, ESecantMode mode=SECANTMODE_BOTH)
void initialize (const Vector< Real > &x, const Vector< Real > &g)
void validate (Objective< Real > &obj, const Vector< Real > &x, const Vector< Real > &g, ETrustRegionU etr)
virtual void setData (Objective< Real > &obj, const Vector< Real > &x, const Vector< Real > &g, Real &tol)
void update (const Vector< Real > &x, const Vector< Real > &s, const Vector< Real > &gold, const Vector< Real > &gnew, const Real snorm, const int iter)
virtual Real value (const Vector< Real > &s, Real &tol) override
 Compute value.
virtual void gradient (Vector< Real > &g, const Vector< Real > &s, Real &tol) override
 Compute gradient.
virtual void hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &s, Real &tol) override
 Apply Hessian approximation to vector.
virtual void invHessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &s, Real &tol) override
 Apply inverse Hessian approximation to vector.
virtual void precond (Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &s, Real &tol) override
 Apply preconditioner to vector.
virtual const Ptr< const Vector< Real > > getGradient (void) const
virtual const Ptr< const Vector< Real > > getIterate (void) const
virtual const Ptr< Objective< Real > > getObjective (void) const
Public Member Functions inherited from ROL::ROL::Objective< Real >
virtual ~Objective ()
 Objective ()
virtual void update (const Vector< Real > &x, UpdateType type, int iter=-1)
 Update objective function.
virtual void update (const Vector< Real > &x, bool flag=true, int iter=-1)
 Update objective function.
virtual Real dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol)
 Compute directional derivative.
virtual void prox (Vector< Real > &Pv, const Vector< Real > &v, Real t, Real &tol)
 Compute the proximity operator.
virtual void proxJacVec (Vector< Real > &Jv, const Vector< Real > &v, const Vector< Real > &x, Real t, Real &tol)
 Apply the Jacobian of the proximity operator.
virtual std::vector< std::vector< Real > > checkGradient (const Vector< Real > &x, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference gradient check.
virtual std::vector< std::vector< Real > > checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference gradient check.
virtual std::vector< std::vector< Real > > checkGradient (const Vector< Real > &x, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference gradient check with specified step sizes.
virtual std::vector< std::vector< Real > > checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference gradient check with specified step sizes.
virtual std::vector< std::vector< Real > > checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference Hessian-applied-to-vector check.
virtual std::vector< std::vector< Real > > checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference Hessian-applied-to-vector check.
virtual std::vector< std::vector< Real > > checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference Hessian-applied-to-vector check with specified step sizes.
virtual std::vector< std::vector< Real > > checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference Hessian-applied-to-vector check with specified step sizes.
virtual std::vector< Real > checkHessSym (const Vector< Real > &x, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout)
 Hessian symmetry check.
virtual std::vector< Real > checkHessSym (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout)
 Hessian symmetry check.
virtual std::vector< std::vector< Real > > checkProxJacVec (const Vector< Real > &x, const Vector< Real > &v, Real t=Real(1), bool printToStream=true, std::ostream &outStream=std::cout, int numSteps=ROL_NUM_CHECKDERIV_STEPS)
 Finite-difference proximity operator Jacobian-applied-to-vector check.
virtual void setParameter (const std::vector< Real > &param)

Protected Member Functions

void applyHessian (Vector< Real > &hv, const Vector< Real > &v, Real &tol)
void applyInvHessian (Vector< Real > &hv, const Vector< Real > &v, Real &tol)
void applyPrecond (Vector< Real > &Pv, const Vector< Real > &v, Real &tol)
Protected Member Functions inherited from ROL::ROL::Objective< Real >
const std::vector< Real > getParameter (void) const

Private Attributes

Ptr< Objective< Real > > obj_
Ptr< const Vector< Real > > x_
Ptr< const Vector< Real > > g_
Ptr< Vector< Real > > dual_
Real tol_
Ptr< Secant< Real > > secant_
bool useSecantPrecond_
bool useSecantHessVec_

Detailed Description

template<typename Real>
class ROL::ROL::TrustRegionModel_U< Real >

Definition at line 32 of file ROL_Constraint_SerialSimOpt.hpp.

Constructor & Destructor Documentation

◆ ~TrustRegionModel_U()

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

Definition at line 79 of file ROL_Constraint_SerialSimOpt.hpp.

◆ TrustRegionModel_U()

template<typename Real>
ROL::ROL::TrustRegionModel_U< Real >::TrustRegionModel_U ( ParameterList & list,
const Ptr< Secant< Real > > & secant = nullPtr,
ESecantMode mode = SECANTMODE_BOTH )
inline

Definition at line 81 of file ROL_Constraint_SerialSimOpt.hpp.

Member Function Documentation

◆ applyHessian()

template<typename Real>
void ROL::ROL::TrustRegionModel_U< Real >::applyHessian ( Vector< Real > & hv,
const Vector< Real > & v,
Real & tol )
inlineprotected

Definition at line 47 of file ROL_Constraint_SerialSimOpt.hpp.

◆ applyInvHessian()

template<typename Real>
void ROL::ROL::TrustRegionModel_U< Real >::applyInvHessian ( Vector< Real > & hv,
const Vector< Real > & v,
Real & tol )
inlineprotected

Definition at line 56 of file ROL_Constraint_SerialSimOpt.hpp.

◆ applyPrecond()

template<typename Real>
void ROL::ROL::TrustRegionModel_U< Real >::applyPrecond ( Vector< Real > & Pv,
const Vector< Real > & v,
Real & tol )
inlineprotected

Definition at line 65 of file ROL_Constraint_SerialSimOpt.hpp.

◆ initialize()

template<typename Real>
void ROL::ROL::TrustRegionModel_U< Real >::initialize ( const Vector< Real > & x,
const Vector< Real > & g )
inline

Definition at line 91 of file ROL_Constraint_SerialSimOpt.hpp.

◆ validate()

template<typename Real>
void ROL::ROL::TrustRegionModel_U< Real >::validate ( Objective< Real > & obj,
const Vector< Real > & x,
const Vector< Real > & g,
ETrustRegionU etr )
inline

Definition at line 99 of file ROL_Constraint_SerialSimOpt.hpp.

◆ setData()

template<typename Real>
virtual void ROL::ROL::TrustRegionModel_U< Real >::setData ( Objective< Real > & obj,
const Vector< Real > & x,
const Vector< Real > & g,
Real & tol )
inlinevirtual

Definition at line 117 of file ROL_Constraint_SerialSimOpt.hpp.

◆ update()

template<typename Real>
void ROL::ROL::TrustRegionModel_U< Real >::update ( const Vector< Real > & x,
const Vector< Real > & s,
const Vector< Real > & gold,
const Vector< Real > & gnew,
const Real snorm,
const int iter )
inline

Definition at line 127 of file ROL_Constraint_SerialSimOpt.hpp.

◆ value()

template<typename Real>
virtual Real ROL::ROL::TrustRegionModel_U< Real >::value ( const Vector< Real > & x,
Real & tol )
inlineoverridevirtual

Compute value.

This function returns the objective function value.

Parameters
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

Implements ROL::ROL::Objective< Real >.

Definition at line 138 of file ROL_Constraint_SerialSimOpt.hpp.

◆ gradient()

template<typename Real>
virtual void ROL::ROL::TrustRegionModel_U< Real >::gradient ( Vector< Real > & g,
const Vector< Real > & x,
Real & tol )
inlineoverridevirtual

Compute gradient.

This function returns the objective function gradient.

Parameters
[out]gis the gradient.
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

The default implementation is a finite-difference approximation based on the function value. This requires the definition of a basis \(\{\phi_i\}\) for the optimization vectors x and the definition of a basis \(\{\psi_j\}\) for the dual optimization vectors (gradient vectors g). The bases must be related through the Riesz map, i.e., \( R \{\phi_i\} = \{\psi_j\}\), and this must be reflected in the implementation of the ROL::Vector::dual() method.

Reimplemented from ROL::ROL::Objective< Real >.

Definition at line 145 of file ROL_Constraint_SerialSimOpt.hpp.

◆ hessVec()

template<typename Real>
virtual void ROL::ROL::TrustRegionModel_U< Real >::hessVec ( Vector< Real > & hv,
const Vector< Real > & v,
const Vector< Real > & x,
Real & tol )
inlineoverridevirtual

Apply Hessian approximation to vector.

This function applies the Hessian of the objective function to the vector \(v\).

Parameters
[out]hvis the the action of the Hessian on \(v\).
[in]vis the direction vector.
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

Reimplemented from ROL::ROL::Objective< Real >.

Definition at line 150 of file ROL_Constraint_SerialSimOpt.hpp.

◆ invHessVec()

template<typename Real>
virtual void ROL::ROL::TrustRegionModel_U< Real >::invHessVec ( Vector< Real > & hv,
const Vector< Real > & v,
const Vector< Real > & x,
Real & tol )
inlineoverridevirtual

Apply inverse Hessian approximation to vector.

This function applies the inverse Hessian of the objective function to the vector \(v\).

Parameters
[out]hvis the action of the inverse Hessian on \(v\).
[in]vis the direction vector.
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

Reimplemented from ROL::ROL::Objective< Real >.

Definition at line 154 of file ROL_Constraint_SerialSimOpt.hpp.

◆ precond()

template<typename Real>
virtual void ROL::ROL::TrustRegionModel_U< Real >::precond ( Vector< Real > & Pv,
const Vector< Real > & v,
const Vector< Real > & x,
Real & tol )
inlineoverridevirtual

Apply preconditioner to vector.

This function applies a preconditioner for the Hessian of the objective function to the vector \(v\).

Parameters
[out]Pvis the action of the Hessian preconditioner on \(v\).
[in]vis the direction vector.
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

Reimplemented from ROL::ROL::Objective< Real >.

Definition at line 158 of file ROL_Constraint_SerialSimOpt.hpp.

◆ getGradient()

template<typename Real>
virtual const Ptr< const Vector< Real > > ROL::ROL::TrustRegionModel_U< Real >::getGradient ( void ) const
inlinevirtual

Definition at line 168 of file ROL_Constraint_SerialSimOpt.hpp.

◆ getIterate()

template<typename Real>
virtual const Ptr< const Vector< Real > > ROL::ROL::TrustRegionModel_U< Real >::getIterate ( void ) const
inlinevirtual

Definition at line 172 of file ROL_Constraint_SerialSimOpt.hpp.

◆ getObjective()

template<typename Real>
virtual const Ptr< Objective< Real > > ROL::ROL::TrustRegionModel_U< Real >::getObjective ( void ) const
inlinevirtual

Definition at line 176 of file ROL_Constraint_SerialSimOpt.hpp.

Member Data Documentation

◆ obj_

template<typename Real>
Ptr<Objective<Real> > ROL::ROL::TrustRegionModel_U< Real >::obj_
private

Definition at line 34 of file ROL_Constraint_SerialSimOpt.hpp.

◆ x_

template<typename Real>
Ptr<const Vector<Real> > ROL::ROL::TrustRegionModel_U< Real >::x_
private

Definition at line 35 of file ROL_Constraint_SerialSimOpt.hpp.

◆ g_

template<typename Real>
Ptr<const Vector<Real> > ROL::ROL::TrustRegionModel_U< Real >::g_
private

Definition at line 35 of file ROL_Constraint_SerialSimOpt.hpp.

◆ dual_

template<typename Real>
Ptr<Vector<Real> > ROL::ROL::TrustRegionModel_U< Real >::dual_
private

Definition at line 36 of file ROL_Constraint_SerialSimOpt.hpp.

◆ tol_

template<typename Real>
Real ROL::ROL::TrustRegionModel_U< Real >::tol_
private

Definition at line 37 of file ROL_Constraint_SerialSimOpt.hpp.

◆ secant_

template<typename Real>
Ptr<Secant<Real> > ROL::ROL::TrustRegionModel_U< Real >::secant_
private

Definition at line 39 of file ROL_Constraint_SerialSimOpt.hpp.

◆ useSecantPrecond_

template<typename Real>
bool ROL::ROL::TrustRegionModel_U< Real >::useSecantPrecond_
private

Definition at line 40 of file ROL_Constraint_SerialSimOpt.hpp.

◆ useSecantHessVec_

template<typename Real>
bool ROL::ROL::TrustRegionModel_U< Real >::useSecantHessVec_
private

Definition at line 41 of file ROL_Constraint_SerialSimOpt.hpp.


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