44#ifndef ROL_CONSTRAINTFROMOBJECTIVE_DEF_H
45#define ROL_CONSTRAINTFROMOBJECTIVE_DEF_H
49template<
typename Real>
53template<
typename Real>
56template<
typename Real>
58 obj_->setParameter(param);
62template<
typename Real>
64 obj_->update(x,type,iter);
67template<
typename Real>
69 obj_->update(x,flag,iter);
72template<
typename Real>
77template<
typename Real>
88template<
typename Real>
90 obj_->gradient(ajv,x,tol);
94template<
typename Real>
96 obj_->hessVec(ahuv,v,x,tol);
100template<
typename Real>
105template<
typename Real>
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,...