ROL
Public Types | Public Member Functions | Private Attributes | List of all members
ROL::DynamicTrackingObjective< Real > Class Template Reference

Defines the time-local contribution to a quadratic tracking objective. More...

#include <ROL_DynamicTrackingObjective.hpp>

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

Public Types

using V = Vector< Real >
 
using TS = TimeStamp< Real >
 
using size_type = typename PartitionedVector< Real >::size_type
 
- Public Types inherited from ROL::DynamicObjective< Real >
using V = Vector< Real >
 
using TS = TimeStamp< Real >
 

Public Member Functions

 DynamicTrackingObjective (const Ptr< PartitionedVector< Real >> &target, Real alpha=0.0)
 
virtual ~DynamicTrackingObjective ()
 
virtual Real value (const V &uo, const V &un, const V &z, const TS &timeStamp) const override
 
virtual void gradient_uo (V &g, const V &uo, const V &un, const V &z, const TS &timeStamp) const override
 
virtual void gradient_un (V &g, const V &uo, const V &un, const V &z, const TS &timeStamp) const override
 
virtual void gradient_z (V &g, const V &uo, const V &un, const V &z, const TS &timeStamp) const override
 
virtual void hessVec_uo_uo (V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const override
 
virtual void hessVec_uo_un (V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const override
 
virtual void hessVec_uo_z (V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const override
 
virtual void hessVec_un_uo (V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const override
 
virtual void hessVec_un_un (V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
 
virtual void hessVec_un_z (V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
 
virtual void hessVec_z_uo (V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
 
virtual void hessVec_z_un (V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
 
virtual void hessVec_z_z (V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
 
- Public Member Functions inherited from ROL::DynamicObjective< Real >
virtual ~DynamicObjective ()
 
virtual void update (const V &uo, const V &un, const V &z, const TS &timeStamp)
 
virtual void update_uo (const V &uo, const TS &timeStamp)
 
virtual void update_un (const V &un, const TS &timeStamp)
 
virtual void update_z (const V &z, const TS &timeStamp)
 

Private Attributes

Ptr< PartitionedVector< Real > > target_
 
size_type Nt_
 
Real alpha_
 
VectorWorkspace< Real > workspace_
 

Detailed Description

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

Defines the time-local contribution to a quadratic tracking objective.

\[ f_k(u,z) = \frac{1}{2} \int\limits_{t_{k-1}}^{t_k} \| u(t)-\tilde u(t)\|^2 + \alpha \|z(t)\^2\,\mathm{d}t \]

  Currently approximates the integral with the trapezoidal rule.

Definition at line 68 of file ROL_DynamicTrackingObjective.hpp.

Member Typedef Documentation

template<typename Real >
using ROL::DynamicTrackingObjective< Real >::V = Vector<Real>

Definition at line 71 of file ROL_DynamicTrackingObjective.hpp.

template<typename Real >
using ROL::DynamicTrackingObjective< Real >::TS = TimeStamp<Real>

Definition at line 72 of file ROL_DynamicTrackingObjective.hpp.

template<typename Real >
using ROL::DynamicTrackingObjective< Real >::size_type = typename PartitionedVector<Real>::size_type

Definition at line 73 of file ROL_DynamicTrackingObjective.hpp.

Constructor & Destructor Documentation

template<typename Real >
ROL::DynamicTrackingObjective< Real >::DynamicTrackingObjective ( const Ptr< PartitionedVector< Real >> &  target,
Real  alpha = 0.0 
)
inline

Definition at line 86 of file ROL_DynamicTrackingObjective.hpp.

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

Definition at line 89 of file ROL_DynamicTrackingObjective.hpp.

Member Function Documentation

template<typename Real >
virtual Real ROL::DynamicTrackingObjective< Real >::value ( const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlineoverridevirtual
template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::gradient_uo ( V g,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlineoverridevirtual
template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::gradient_un ( V g,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlineoverridevirtual
template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::gradient_z ( V g,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlineoverridevirtual
template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::hessVec_uo_uo ( V hv,
const V v,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlineoverridevirtual
template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::hessVec_uo_un ( V hv,
const V v,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlineoverridevirtual

Reimplemented from ROL::DynamicObjective< Real >.

Definition at line 154 of file ROL_DynamicTrackingObjective.hpp.

References ROL::Vector< Real >::zero().

template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::hessVec_uo_z ( V hv,
const V v,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlineoverridevirtual

Reimplemented from ROL::DynamicObjective< Real >.

Definition at line 159 of file ROL_DynamicTrackingObjective.hpp.

References ROL::Vector< Real >::zero().

template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::hessVec_un_uo ( V hv,
const V v,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlineoverridevirtual

Reimplemented from ROL::DynamicObjective< Real >.

Definition at line 164 of file ROL_DynamicTrackingObjective.hpp.

References ROL::Vector< Real >::zero().

template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::hessVec_un_un ( V hv,
const V v,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlinevirtual
template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::hessVec_un_z ( V hv,
const V v,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlinevirtual

Reimplemented from ROL::DynamicObjective< Real >.

Definition at line 175 of file ROL_DynamicTrackingObjective.hpp.

References ROL::Vector< Real >::zero().

template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::hessVec_z_uo ( V hv,
const V v,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlinevirtual

Reimplemented from ROL::DynamicObjective< Real >.

Definition at line 180 of file ROL_DynamicTrackingObjective.hpp.

References ROL::Vector< Real >::zero().

template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::hessVec_z_un ( V hv,
const V v,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlinevirtual

Reimplemented from ROL::DynamicObjective< Real >.

Definition at line 185 of file ROL_DynamicTrackingObjective.hpp.

References ROL::Vector< Real >::zero().

template<typename Real >
virtual void ROL::DynamicTrackingObjective< Real >::hessVec_z_z ( V hv,
const V v,
const V uo,
const V un,
const V z,
const TS timeStamp 
) const
inlinevirtual

Member Data Documentation

template<typename Real >
Ptr<PartitionedVector<Real> > ROL::DynamicTrackingObjective< Real >::target_
private
template<typename Real >
size_type ROL::DynamicTrackingObjective< Real >::Nt_
private

Definition at line 79 of file ROL_DynamicTrackingObjective.hpp.

template<typename Real >
Real ROL::DynamicTrackingObjective< Real >::alpha_
private
template<typename Real >
VectorWorkspace<Real> ROL::DynamicTrackingObjective< Real >::workspace_
mutableprivate

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