44 #ifndef ROL_CONSTRAINT_STATE_H
45 #define ROL_CONSTRAINT_STATE_H
54 const ROL::Ptr<Constraint_SimOpt<Real> >
con_;
55 const ROL::Ptr<const Vector<Real> >
z_;
66 con_->applyJacobian_1(jv,v,u,*
z_,tol);
71 con_->applyAdjointJacobian_1(ajv,v,u,*
z_,tol);
75 con_->applyAdjointHessian_11(ahwv,w,v,u,*
z_,tol);
79 con_->update_1(u,flag,iter);
84 ROL::Ptr<Vector<Real> > ijv = u.
clone();
85 con_->applyInverseJacobian_1(*ijv,v,u,*
z_,tol);
86 con_->applyInverseAdjointJacobian_1(pv,ijv->
dual(),u,*
z_,tol);
91 con_->setParameter(param);
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
void applyAdjointJacobian(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &u, Real &tol)
Apply the adjoint of the the constraint Jacobian at , , to vector .
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
const ROL::Ptr< const Vector< Real > > z_
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &u, Real &tol)
Apply the constraint Jacobian at , , to vector .
void applyPreconditioner(Vector< Real > &pv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &g, Real &tol)
Apply a constraint preconditioner at , , to vector . Ideally, this preconditioner satisfies the follo...
Defines the linear algebra or vector space interface.
void applyAdjointHessian(Vector< Real > &ahwv, const Vector< Real > &w, const Vector< Real > &v, const Vector< Real > &u, Real &tol)
Apply the derivative of the adjoint of the constraint Jacobian at to vector in direction ...
void setParameter(const std::vector< Real > ¶m)
void value(Vector< Real > &c, const Vector< Real > &u, Real &tol)
Evaluate the constraint operator at .
virtual void setParameter(const std::vector< Real > ¶m)
void update(const Vector< Real > &u, bool flag=true, int iter=-1)
Update constraint functions. x is the optimization variable, flag = true if optimization variable is ...
Defines the constraint operator interface for simulation-based optimization.
Constraint_State(const ROL::Ptr< Constraint_SimOpt< Real > > &con, const ROL::Ptr< const Vector< Real > > &z)
Defines the general constraint operator interface.
const ROL::Ptr< Constraint_SimOpt< Real > > con_