44 #ifndef ROL_CONSTRAINTFROMOBJECTIVE_H
45 #define ROL_CONSTRAINTFROMOBJECTIVE_H
70 const ROL::Ptr<Objective<Real> >
obj_;
92 obj_->setParameter(param);
99 void update(
const V& x,
bool flag =
true,
int iter = -1 ) {
100 obj_->update(x,flag,iter);
131 obj_->gradient(ajv,x,tol);
142 obj_->hessVec(ahuv,v,x,tol);
150 #endif // ROL_CONSTRAINTFROMOBJECTIVE_H
Provides the interface to evaluate objective functions.
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
virtual void scale(const Real alpha)=0
Compute where .
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
Creates a constraint from an objective function and a offset value.
ROL::Ptr< V > dualVector_
void applyJacobian(V &jv, const V &v, const V &x, Real &tol)
Apply the constraint Jacobian at , , to vector . .
Defines the linear algebra or vector space interface.
const ROL::Ptr< Objective< Real > > obj_
virtual Real dot(const Vector &x) const =0
Compute where .
void setValue(V &x, Real val)
void update(const V &x, bool flag=true, int iter=-1)
Update constraint.
virtual void applyAdjointHessian(Vector< Real > &ahuv, const Vector< Real > &u, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply the derivative of the adjoint of the constraint Jacobian at to vector in direction ...
void value(V &c, const V &x, Real &tol)
Evaluate constraint c(x) = f(x)-offset.
virtual void setParameter(const std::vector< Real > ¶m)
void setParameter(const std::vector< Real > ¶m)
Real getValue(const V &x)
Defines the general constraint operator interface.
void applyAdjointJacobian(V &ajv, const V &v, const V &x, Real &tol)
Apply the adjoint of the the constraint Jacobian at , , to vector .
const ROL::Ptr< Objective< Real > > getObjective(void) const
ConstraintFromObjective(const ROL::Ptr< Objective< Real > > &obj, const Real offset=0)