44 #ifndef ROL_RISKLESS_CONSTRAINT_H
45 #define ROL_RISKLESS_CONSTRAINT_H
55 const ROL::Ptr<Constraint<Real> >
con_;
62 ROL::Ptr<const Vector<Real> > x0 =
dynamic_cast<const RiskVector<Real>&
>(x).getVector();
63 con_->value(c,*x0,tol);
67 ROL::Ptr<const Vector<Real> > x0 =
dynamic_cast<const RiskVector<Real>&
>(x).getVector();
68 ROL::Ptr<const Vector<Real> > v0 =
dynamic_cast<const RiskVector<Real>&
>(v).getVector();
69 con_->applyJacobian(jv,*v0,*x0,tol);
74 ROL::Ptr<const Vector<Real> > x0 =
dynamic_cast<const RiskVector<Real>&
>(x).getVector();
75 ROL::Ptr<Vector<Real> > ajv0 =
dynamic_cast<RiskVector<Real>&
>(ajv).getVector();
76 con_->applyAdjointJacobian(*ajv0,v,*x0,tol);
80 ROL::Ptr<const Vector<Real> > x0 =
dynamic_cast<const RiskVector<Real>&
>(x).getVector();
81 ROL::Ptr<const Vector<Real> > v0 =
dynamic_cast<const RiskVector<Real>&
>(v).getVector();
82 ROL::Ptr<Vector<Real> > ahuv0 =
dynamic_cast<RiskVector<Real>&
>(ahuv).getVector();
83 con_->applyAdjointHessian(*ahuv0,u,*v0,*x0,tol);
89 con_->setParameter(param);
RiskLessConstraint(const ROL::Ptr< Constraint< Real > > &con)
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 .
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol)
Evaluate the constraint operator at .
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 linear algebra or vector space interface.
virtual void setParameter(const std::vector< Real > ¶m)
const ROL::Ptr< Constraint< Real > > con_
virtual void setParameter(const std::vector< Real > ¶m)
Defines the general constraint operator interface.
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply the constraint Jacobian at , , to vector .