44 #ifndef ROL_SROM_EQUALITY_CONSTRAINT_H 45 #define ROL_SROM_EQUALITY_CONSTRAINT_H 51 #include "Teuchos_SerialDenseMatrix.hpp" 52 #include "Teuchos_SerialDenseVector.hpp" 53 #include "Teuchos_LAPACK.hpp" 66 Teuchos::RCP<std::vector<Real> > ec =
67 Teuchos::rcp_const_cast<std::vector<Real> >((Teuchos::dyn_cast<
StdVector<Real> >(c)).getVector());
70 for (
size_t i = 0; i < ex.getNumSamples(); i++) {
76 Teuchos::RCP<std::vector<Real> > ejv =
77 Teuchos::rcp_const_cast<std::vector<Real> >((Teuchos::dyn_cast<
StdVector<Real> >(jv)).getVector());
80 for (
size_t i = 0; i < ev.getNumSamples(); i++) {
87 Teuchos::RCP<const std::vector<Real> > ev =
const size_t getDimension(void) const
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol)
Evaluate the constraint operator at .
const Element getWeight(const size_t i) const
void setWeight(const size_t i, const Element wt)
Contains definitions of custom data types in ROL.
virtual void zero()
Set to zero vector.
Defines the linear algebra or vector space interface.
void applyAdjointJacobian(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply the adjoint of the the constraint Jacobian at , , to vector .
const size_t getNumSamples(void) const
void applyAdjointHessian(Vector< Real > &ahuv, const Vector< Real > &u, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply the derivative of the adjoint of the constraint Jacobian at to vector in direction ...
Defines the equality constraint operator interface.
Provides the std::vector implementation of the ROL::Vector interface.
Provides the std::vector implementation of the ROL::Vector interface.
SROMEqualityConstraint(void)
void setPoint(const size_t i, const std::vector< Element > &pt)
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply the constraint Jacobian at , , to vector .