10 #ifndef ROL_BINARY_CONSTRAINT_DEF_H
11 #define ROL_BINARY_CONSTRAINT_DEF_H
15 template<
typename Real>
18 lo_(lo), up_(up), d_(lo_->clone()), gamma_(gamma) {}
20 template<
typename Real>
24 template<
typename Real>
28 template<
typename Real>
39 template<
typename Real>
43 jv.
axpy( -one, *lo_ );
51 template<
typename Real>
56 template<
typename Real>
60 ahuv.
axpy( -one, *lo_ );
64 ahuv.
applyBinary( Elementwise::Multiply<Real>(), v );
65 ahuv.
applyBinary( Elementwise::Multiply<Real>(), u );
69 template<
typename Real>
76 #endif // ROL_BINARY_CONSTRAINT_DEF_H
virtual void scale(const Real alpha)=0
Compute where .
Implements an equality constraint function that evaluates to zero on the surface of a bounded paralle...
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 setPenalty(Real gamma)
virtual void axpy(const Real alpha, const Vector &x)
Compute where .
virtual void applyBinary(const Elementwise::BinaryFunction< Real > &f, const Vector &x)
Defines the linear algebra or vector space interface.
void applyJacobian(ROL::Vector< Real > &jv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &sol)
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply the constraint Jacobian at , , to vector .
BinaryConstraint(const ROL::Ptr< const Vector< Real >> &lo, const ROL::Ptr< const Vector< Real >> &up, Real gamma)
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 .
Provides the interface to apply upper and lower bound constraints.
virtual void set(const Vector &x)
Set where .
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Evaluate the constraint operator at .