44 #ifndef ROL_COMPOSITE_EQUALITY_CONSTRAINT_SIMOPT_H
45 #define ROL_COMPOSITE_EQUALITY_CONSTRAINT_SIMOPT_H
78 const ROL::Ptr<Constraint_SimOpt<Real> >
conVal_;
79 const ROL::Ptr<Constraint_SimOpt<Real> >
conRed_;
81 ROL::Ptr<Vector<Real> >
Sz_;
98 bool isComputed =
false;
125 jv.
scale(static_cast<Real>(-1));
134 ajv.
scale(static_cast<Real>(-1));
142 const bool storage =
true,
const bool isConRedParametrized =
false)
162 conVal_->update_1(u, flag, iter);
172 Real ctol = std::sqrt(ROL_EPSILON<Real>());
190 conVal_->applyJacobian_1(jv, v, u, *
Sz_, tol);
202 conVal_->applyInverseJacobian_1(ijv, v, u, *
Sz_, tol);
208 conVal_->applyAdjointJacobian_1(ajv, v, u, *
Sz_, tol);
221 conVal_->applyInverseAdjointJacobian_1(ijv, v, u, *
Sz_, tol);
227 conVal_->applyAdjointHessian_11(ahwv, w, v, u, z, tol);
258 dualZ1_->scale(static_cast<Real>(-1));
void update(const Vector< Real > &u, const Vector< Real > &z, bool flag=true, int iter=-1)
Update constraint functions. x is the optimization variable, flag = true if optimization variable is ...
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
virtual void scale(const Real alpha)=0
Compute where .
void applyAdjointHessian_21(Vector< Real > &ahwv, const Vector< Real > &w, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the simulation-space derivative of the adjoint of the constraint optimization-space Jacobian at...
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
void update_2(const Vector< Real > &z, bool flag=true, int iter=-1)
Update constraint functions with respect to Opt variable. x is the optimization variable, flag = true if optimization variable is changed, iter is the outer algorithm iterations count.
virtual void plus(const Vector &x)=0
Compute , where .
void applySens(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &z, Real &tol)
void applyAdjointJacobian_2(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the adjoint of the partial constraint Jacobian at , , to vector . This is the primary interface...
virtual void axpy(const Real alpha, const Vector &x)
Compute where .
void solve(Vector< Real > &c, Vector< Real > &u, const Vector< Real > &z, Real &tol)
Given , solve for .
void applyInverseAdjointJacobian_1(Vector< Real > &ijv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the inverse of the adjoint of the partial constraint Jacobian at , , to the vector ...
const std::vector< Real > getParameter(void) const
ROL::Ptr< Vector< Real > > primRed_
ROL::Ptr< Vector< Real > > Sz_
void applyAdjointSens(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &z, Real &tol)
void update_1(const Vector< Real > &u, bool flag=true, int iter=-1)
Update constraint functions with respect to Sim variable. x is the optimization variable, flag = true if optimization variable is changed, iter is the outer algorithm iterations count.
void applyAdjointHessian_11(Vector< Real > &ahwv, const Vector< Real > &w, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the simulation-space derivative of the adjoint of the constraint simulation-space Jacobian at ...
virtual void zero()
Set to zero vector.
Defines the linear algebra or vector space interface.
void solveConRed(const Vector< Real > &z, Real &tol)
ROL::Ptr< Vector< Real > > dualRed_
ROL::Ptr< Vector< Real > > primZ_
void applyJacobian_2(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the partial constraint Jacobian at , , to the vector .
ROL::Ptr< SimController< Real > > stateStore_
virtual void setParameter(const std::vector< Real > ¶m)
void applyInverseJacobian_1(Vector< Real > &ijv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the inverse partial constraint Jacobian at , , to the vector .
Defines a composite equality constraint operator interface for simulation-based optimization.
void applyJacobian_1(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the partial constraint Jacobian at , , to the vector .
ROL::Ptr< Vector< Real > > dualZ_
void applyAdjointHessian_22(Vector< Real > &ahwv, const Vector< Real > &w, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the optimization-space derivative of the adjoint of the constraint optimization-space Jacobian ...
const bool isConRedParametrized_
ROL::Ptr< Vector< Real > > dualZ1_
void applyAdjointHessian_12(Vector< Real > &ahwv, const Vector< Real > &w, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the optimization-space derivative of the adjoint of the constraint simulation-space Jacobian at...
const ROL::Ptr< Constraint_SimOpt< Real > > conRed_
CompositeConstraint_SimOpt(const ROL::Ptr< Constraint_SimOpt< Real > > &conVal, const ROL::Ptr< Constraint_SimOpt< Real > > &conRed, const Vector< Real > &cVal, const Vector< Real > &cRed, const Vector< Real > &u, const Vector< Real > &Sz, const Vector< Real > &z, const bool storage=true, const bool isConRedParametrized=false)
Defines the constraint operator interface for simulation-based optimization.
void setParameter(const std::vector< Real > ¶m)
void applyAdjointJacobian_1(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply the adjoint of the partial constraint Jacobian at , , to the vector . This is the primary inter...
const ROL::Ptr< Constraint_SimOpt< Real > > conVal_
void value(Vector< Real > &c, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Evaluate the constraint operator at .