10 #ifndef ROL_CONSTRAINTFROMOBJECTIVE_H
11 #define ROL_CONSTRAINTFROMOBJECTIVE_H
29 template<
typename Real>
32 const Ptr<Objective<Real>>
obj_;
42 void setParameter(
const std::vector<Real> ¶m )
override;
61 #endif // ROL_CONSTRAINTFROMOBJECTIVE_H
Provides the interface to evaluate objective functions.
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply the constraint Jacobian at , , to vector .
void setValue(Vector< Real > &x, Real val)
Creates a constraint from an objective function and a offset value.
const Ptr< Objective< Real > > obj_
const Ptr< Objective< Real > > getObjective(void) const
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Evaluate the constraint operator at .
Defines the linear algebra or vector space interface.
Real getValue(const Vector< Real > &x)
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Update constraint function.
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 ...
ConstraintFromObjective(const Ptr< Objective< Real >> &obj, const Real offset=0)
void setParameter(const std::vector< Real > ¶m) override
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 .
Defines the general constraint operator interface.
Ptr< Vector< Real > > dualVector_