10 #ifndef ROL_LINEAR_OBJECTIVE_SIMOPT_H
11 #define ROL_LINEAR_OBJECTIVE_SIMOPT_H
42 Real valu(0), valz(0);
Provides the interface to evaluate simulation-based objective functions.
virtual Real apply(const Vector< Real > &x) const
Apply to a dual vector. This is equivalent to the call .
void hessVec_11(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply Hessian approximation to vector.
virtual void zero()
Set to zero vector.
Defines the linear algebra or vector space interface.
void gradient_2(Vector< Real > &g, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute gradient with respect to second component.
void hessVec_22(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Provides the interface to evaluate linear objective functions.
void gradient_1(Vector< Real > &g, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute gradient with respect to first component.
LinearObjective_SimOpt(const Ptr< const Vector< Real >> &simcost=nullPtr, const Ptr< const Vector< Real >> &optcost=nullPtr)
void hessVec_12(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
const Ptr< const Vector< Real > > simcost_
void hessVec_21(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
virtual void set(const Vector &x)
Set where .
const Ptr< const Vector< Real > > optcost_
Real value(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute value.