10#ifndef ROL_CONSTRAINTFROMOBJECTIVE_DEF_H
11#define ROL_CONSTRAINTFROMOBJECTIVE_DEF_H
15template<
typename Real>
19template<
typename Real>
22template<
typename Real>
24 obj_->setParameter(param);
28template<
typename Real>
30 obj_->update(x,type,iter);
33template<
typename Real>
35 obj_->update(x,flag,iter);
38template<
typename Real>
43template<
typename Real>
54template<
typename Real>
56 obj_->gradient(ajv,x,tol);
60template<
typename Real>
62 obj_->hessVec(ahuv,v,x,tol);
66template<
typename Real>
71template<
typename Real>
virtual Real getValue(const Vector< Real > &x, const std::vector< Real > &xstat, SampleGenerator< Real > &sampler)
Return risk measure value.
void setValue(Vector< Real > &x, Real val)
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
ConstraintFromObjective(const Ptr< Objective< Real > > &obj, const Real offset=0)
void applyAdjointHessian(Vector< Real > &ahuv, const Vector< Real > &u, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
const Ptr< Objective< Real > > obj_
void setParameter(const std::vector< Real > ¶m) override
const Ptr< Objective< Real > > getObjective(void) const
void applyAdjointJacobian(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Ptr< Vector< Real > > dualVector_
Real getValue(const Vector< Real > &x)
virtual void setParameter(const std::vector< Real > ¶m)
Provides the interface to evaluate objective functions.
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
Defines the linear algebra or vector space interface.
virtual Real apply(const Vector< Real > &x) const
Apply to a dual vector. This is equivalent to the call .
virtual void scale(const Real alpha)=0
Compute where .
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis,...