44 #ifndef ROL_SLACKLESSCONSTRAINT_DEF_HPP
45 #define ROL_SLACKLESSCONSTRAINT_DEF_HPP
49 template<
typename Real>
52 template<
typename Real>
54 con_->update( *getOpt(x), type, iter );
57 template<
typename Real>
59 con_->update( *getOpt(x), flag, iter );
62 template<
typename Real>
64 con_->value( c, *getOpt(x), tol );
67 template<
typename Real>
69 con_->applyJacobian( jv, *getOpt(v), *getOpt(x), tol );
72 template<
typename Real>
75 con_->applyAdjointJacobian( *getOpt(ajv), v, *getOpt(x), dualv, tol );
78 template<
typename Real>
81 con_->applyAdjointHessian( *getOpt(ahuv), u, *getOpt(v), *getOpt(x), tol );
84 template<
typename Real>
87 con_->setParameter(param);
90 template<
typename Real>
95 template<
typename Real>
100 template<
typename Real>
104 const int nvec =
static_cast<int>(xpv.
numVectors());
105 for (
int i = 1; i < nvec; ++i) {
112 #endif // ROL__SLACKLESSCONSTRAINT_HPP
size_type numVectors() const
ROL::Ptr< const Vector< Real > > get(size_type i) const
Defines the linear algebra of vector space on a generic partitioned vector.
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Update constraint function.
SlacklessConstraint(const Ptr< Constraint< Real >> &con)
Ptr< Vector< Real > > getOpt(Vector< Real > &xs) const
Defines the linear algebra or vector space interface.
void applyAdjointJacobian(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &x, const Vector< Real > &dualv, Real &tol) override
Apply the adjoint of the the constraint Jacobian at , , to vector .
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply the constraint Jacobian at , , to vector .
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 ...
virtual void setParameter(const std::vector< Real > ¶m)
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Evaluate the constraint operator at .
void setParameter(const std::vector< Real > ¶m) override
void zeroSlack(Vector< Real > &x) const
Defines the general constraint operator interface.