44#ifndef ROL_ELASTICLINEARCONSTRAINT_H
45#define ROL_ELASTICLINEARCONSTRAINT_H
59template<
typename Real>
62 const Ptr<Constraint<Real>>
con_;
Defines the general constraint operator interface.
Defines the general affine constraint with the form .
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 .
ElasticLinearConstraint(const Ptr< const Vector< Real > > &x, const Ptr< Constraint< Real > > &con, const Ptr< const Vector< Real > > &c)
const Ptr< Constraint< Real > > con_
void setAnchor(const Ptr< const Vector< Real > > &x)
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 ,...
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Evaluate the constraint operator at .
const Ptr< Vector< Real > > tmp_
const Ptr< Vector< Real > > x_
const Ptr< Vector< Real > > c_
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Update constraint function.
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply the constraint Jacobian at , , to vector .
Defines the linear algebra or vector space interface.