ROL
|
Defines the time-local contribution to a quadratic tracking objective. More...
#include <ROL_DynamicTrackingObjective.hpp>
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_ |
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.
using ROL::DynamicTrackingObjective< Real >::V = Vector<Real> |
Definition at line 71 of file ROL_DynamicTrackingObjective.hpp.
using ROL::DynamicTrackingObjective< Real >::TS = TimeStamp<Real> |
Definition at line 72 of file ROL_DynamicTrackingObjective.hpp.
using ROL::DynamicTrackingObjective< Real >::size_type = typename PartitionedVector<Real>::size_type |
Definition at line 73 of file ROL_DynamicTrackingObjective.hpp.
|
inline |
Definition at line 86 of file ROL_DynamicTrackingObjective.hpp.
|
inlinevirtual |
Definition at line 89 of file ROL_DynamicTrackingObjective.hpp.
|
inlineoverridevirtual |
Implements ROL::DynamicObjective< Real >.
Definition at line 91 of file ROL_DynamicTrackingObjective.hpp.
References ROL::DynamicTrackingObjective< Real >::alpha_, ROL::Vector< Real >::dot(), ROL::TimeStamp< Real >::k, ROL::TimeStamp< Real >::t, ROL::DynamicTrackingObjective< Real >::target_, and ROL::DynamicTrackingObjective< Real >::workspace_.
|
inlineoverridevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 115 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::axpy(), ROL::TimeStamp< Real >::k, ROL::Vector< Real >::scale(), ROL::Vector< Real >::set(), ROL::TimeStamp< Real >::t, ROL::DynamicTrackingObjective< Real >::target_, and ROL::Vector< Real >::zero().
|
inlineoverridevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 126 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::axpy(), ROL::TimeStamp< Real >::k, ROL::Vector< Real >::scale(), ROL::Vector< Real >::set(), ROL::TimeStamp< Real >::t, and ROL::DynamicTrackingObjective< Real >::target_.
|
inlineoverridevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 134 of file ROL_DynamicTrackingObjective.hpp.
References ROL::DynamicTrackingObjective< Real >::alpha_, ROL::Vector< Real >::scale(), ROL::Vector< Real >::set(), and ROL::TimeStamp< Real >::t.
|
inlineoverridevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 143 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::axpy(), ROL::TimeStamp< Real >::k, ROL::Vector< Real >::scale(), ROL::Vector< Real >::set(), ROL::TimeStamp< Real >::t, ROL::DynamicTrackingObjective< Real >::target_, and ROL::Vector< Real >::zero().
|
inlineoverridevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 154 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::zero().
|
inlineoverridevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 159 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::zero().
|
inlineoverridevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 164 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 169 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::scale(), ROL::Vector< Real >::set(), and ROL::TimeStamp< Real >::t.
|
inlinevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 175 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 180 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 185 of file ROL_DynamicTrackingObjective.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::DynamicObjective< Real >.
Definition at line 190 of file ROL_DynamicTrackingObjective.hpp.
References ROL::DynamicTrackingObjective< Real >::alpha_, ROL::Vector< Real >::scale(), ROL::Vector< Real >::set(), and ROL::TimeStamp< Real >::t.
|
private |
|
private |
Definition at line 79 of file ROL_DynamicTrackingObjective.hpp.
|
private |
Definition at line 80 of file ROL_DynamicTrackingObjective.hpp.
Referenced by ROL::DynamicTrackingObjective< Real >::gradient_z(), ROL::DynamicTrackingObjective< Real >::hessVec_z_z(), and ROL::DynamicTrackingObjective< Real >::value().
|
mutableprivate |
Definition at line 82 of file ROL_DynamicTrackingObjective.hpp.
Referenced by ROL::DynamicTrackingObjective< Real >::value().