10#ifndef ROL_REDUCED_LINEAR_CONSTRAINT_DEF_H
11#define ROL_REDUCED_LINEAR_CONSTRAINT_DEF_H
15template<
typename Real>
19 : con_(con), bnd_(bnd), x_(x), prim_(x->clone()) {}
21template<
typename Real>
26template<
typename Real>
30 bnd_->pruneActive(*prim_,*x_,
zero);
31 con_->value(c,*prim_,tol);
34template<
typename Real>
40 bnd_->pruneActive(*prim_,*x_,
zero);
41 con_->applyJacobian(jv,*prim_,x,tol);
44template<
typename Real>
49 con_->applyAdjointJacobian(jv,v,x,tol);
50 bnd_->pruneActive(jv,*x_,
zero);
53template<
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.