44#ifndef ROL_CONSTRAINTFROMOBJECTIVE_H
45#define ROL_CONSTRAINTFROMOBJECTIVE_H
63template<
typename Real>
66 const Ptr<Objective<Real>>
obj_;
76 void setParameter(
const std::vector<Real> ¶m )
override;
Creates a constraint from an objective function and a offset value.
void setValue(Vector< Real > &x, Real val)
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Update constraint function.
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Evaluate the constraint operator at .
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
Apply the derivative of the adjoint of the constraint Jacobian at to vector in direction ,...
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
Apply the adjoint of the the constraint Jacobian at , , to vector .
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply the constraint Jacobian at , , to vector .
Ptr< Vector< Real > > dualVector_
Real getValue(const Vector< Real > &x)
Defines the general constraint operator interface.
Provides the interface to evaluate objective functions.
Defines the linear algebra or vector space interface.