10 #ifndef ROL_SLACKLESSCONSTRAINT_DEF_HPP
11 #define ROL_SLACKLESSCONSTRAINT_DEF_HPP
15 template<
typename Real>
18 template<
typename Real>
20 con_->update( *getOpt(x), type, iter );
23 template<
typename Real>
25 con_->update( *getOpt(x), flag, iter );
28 template<
typename Real>
30 con_->value( c, *getOpt(x), tol );
33 template<
typename Real>
35 con_->applyJacobian( jv, *getOpt(v), *getOpt(x), tol );
38 template<
typename Real>
41 con_->applyAdjointJacobian( *getOpt(ajv), v, *getOpt(x), dualv, tol );
44 template<
typename Real>
47 con_->applyAdjointHessian( *getOpt(ahuv), u, *getOpt(v), *getOpt(x), tol );
50 template<
typename Real>
53 con_->setParameter(param);
56 template<
typename Real>
61 template<
typename Real>
66 template<
typename Real>
70 const int nvec =
static_cast<int>(xpv.
numVectors());
71 for (
int i = 1; i < nvec; ++i) {
78 #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.