11 #ifndef ROL_DYNAMICOBJECTIVE_CHECKINTERFACE_HPP
12 #define ROL_DYNAMICOBJECTIVE_CHECKINTERFACE_HPP
17 #include "ROL_FunctionBindings.hpp"
23 namespace ph = std::placeholders;
25 template<
typename Real>
71 f_scalar_t<Real>
value_z(
const V& uo,
const V& un ) {
72 return std::bind( &
Obj::value, &
obj_, std::cref(uo), std::cref(un), ph::_1,
ts_ );
174 using details::DynamicObjective_CheckInterface;
176 template<
typename Real>
178 return DynamicObjective_CheckInterface<Real>( obj );
181 template<
typename Real>
184 return DynamicObjective_CheckInterface<Real>( obj, ts );
191 #endif // ROL_DYNAMICOBJECTIVE_CHECKINTERFACE_HPP
f_vector_t< Real > gradient_uo_uo(const V &un, const V &z)
f_dderiv_t< Real > hessVec_un_un(const V &uo, const V &z)
DynamicObjective_CheckInterface(Obj &obj, TimeStamp< Real > &ts)
f_vector_t< Real > gradient_z(const V &uo, const V &un)
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 update(const Vector< Real > &u, const Vector< Real > &z, bool flag=true, int iter=-1) override
f_dderiv_t< Real > hessVec_uo_un(const V &uo, const V &z)
f_dderiv_t< Real > hessVec_z_un(const V &uo, const V &z)
f_scalar_t< Real > value_un(const V &uo, const V &z)
f_vector_t< Real > gradient_uo_z(const V &uo, const V &un)
f_vector_t< Real > gradient_un_un(const V &uo, const V &z)
Defines the linear algebra or vector space interface.
Defines the time-dependent objective function interface for simulation-based optimization. Computes time-local contributions of value, gradient, Hessian-vector product etc to a larger composite objective defined over the simulation time. In contrast to other objective classes Objective_TimeSimOpt has a default implementation of value which returns zero, as time-dependent simulation based optimization problems may have an objective value which depends only on the final state of the system.
f_dderiv_t< Real > hessVec_z_z(const V &uo, const V &un)
f_vector_t< Real > gradient_z_uo(const V &un, const V &z)
f_vector_t< Real > gradient_z_un(const V &uo, const V &z)
virtual void hessVec_un_z(V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
f_dderiv_t< Real > hessVec_un_z(const V &uo, const V &un)
DynamicObjective_CheckInterface(Obj &obj)
virtual void hessVec_z_z(V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
f_vector_t< Real > gradient_un_uo(const V &un, const V &z)
f_update_t< Real > update_z(const V &uo, const V &un)
virtual void hessVec_uo_un(V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
f_vector_t< Real > gradient_uo_un(const V &uo, const V &z)
virtual void gradient_z(V &g, const V &uo, const V &un, const V &z, const TS &timeStamp) const
f_vector_t< Real > gradient_un(const V &uo, const V &z)
f_vector_t< Real > gradient_uo(const V &un, const V &z)
f_update_t< Real > update_uo(const V &un, const V &z)
f_scalar_t< Real > value_uo(const V &un, const V &z)
virtual void hessVec_uo_uo(V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
virtual void hessVec_un_un(V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
f_update_t< Real > update_un(const V &uo, const V &z)
virtual void gradient_un(V &g, const V &uo, const V &un, const V &z, const TS &timeStamp) const
f_dderiv_t< Real > hessVec_z_uo(const V &un, const V &z)
f_dderiv_t< Real > hessVec_uo_uo(const V &un, const V &z)
f_vector_t< Real > gradient_z_z(const V &uo, const V &un)
f_scalar_t< Real > value_z(const V &uo, const V &un)
f_dderiv_t< Real > hessVec_uo_z(const V &uo, const V &un)
virtual void hessVec_un_uo(V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
f_vector_t< Real > gradient_un_z(const V &uo, const V &un)
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_uo_z(V &hv, const V &v, const V &uo, const V &un, const V &z, const TS &timeStamp) const
virtual void gradient_uo(V &g, const V &uo, const V &un, const V &z, const TS &timeStamp) const
f_dderiv_t< Real > hessVec_un_uo(const V &un, const V &z)
virtual Real value(const V &uo, const V &un, const V &z, const TS &timeStamp) const =0
DynamicConstraint_CheckInterface< Real > make_check(DynamicConstraint< Real > &con)