44#ifndef ROL_REDUCED_LINEAR_CONSTRAINT_DEF_H
45#define ROL_REDUCED_LINEAR_CONSTRAINT_DEF_H
49template<
typename Real>
53 : con_(con), bnd_(bnd), x_(x), prim_(x->clone()) {}
55template<
typename Real>
60template<
typename Real>
64 bnd_->pruneActive(*prim_,*x_,
zero);
65 con_->value(c,*prim_,tol);
68template<
typename Real>
74 bnd_->pruneActive(*prim_,*x_,
zero);
75 con_->applyJacobian(jv,*prim_,x,tol);
78template<
typename Real>
83 con_->applyAdjointJacobian(jv,v,x,tol);
84 bnd_->pruneActive(jv,*x_,
zero);
87template<
typename Real>
Objective_SerialSimOpt(const Ptr< Obj > &obj, const V &ui) z0_ zero()
Provides the interface to apply upper and lower bound constraints.
Defines the general constraint operator interface.
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)
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply the constraint Jacobian at , , to vector .
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Evaluate the constraint operator at .
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 setX(const Ptr< const Vector< Real > > &x)
Defines the linear algebra or vector space interface.
virtual void zero()
Set to zero vector.