10 #ifndef ROL_REDUCED_LINEAR_CONSTRAINT_DEF_H
11 #define ROL_REDUCED_LINEAR_CONSTRAINT_DEF_H
15 template<
typename Real>
19 : con_(con), bnd_(bnd), x_(x), prim_(x->clone()) {}
21 template<
typename Real>
26 template<
typename Real>
30 bnd_->pruneActive(*prim_,*x_,zero);
31 con_->value(c,*prim_,tol);
34 template<
typename Real>
40 bnd_->pruneActive(*prim_,*x_,zero);
41 con_->applyJacobian(jv,*prim_,x,tol);
44 template<
typename Real>
49 con_->applyAdjointJacobian(jv,v,x,tol);
50 bnd_->pruneActive(jv,*x_,zero);
53 template<
typename Real>
63 #endif // ROL_REDUCED_LINEAR_CONSTRAINT_H
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Evaluate the constraint operator at .
virtual void zero()
Set to zero vector.
Defines the linear algebra or vector space interface.
Objective_SerialSimOpt(const Ptr< Obj > &obj, const V &ui) z0_ zero()
void setX(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 applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply the constraint Jacobian at , , to vector .
Provides the interface to apply upper and lower bound constraints.
void applyAdjointJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply the adjoint of the the constraint Jacobian at , , to vector .
ReducedLinearConstraint(const Ptr< Constraint< Real >> &con, const Ptr< BoundConstraint< Real >> &bnd, const Ptr< const Vector< Real >> &x)
Defines the general constraint operator interface.