10 #ifndef ROL_CONSTRAINT_STATE_H
11 #define ROL_CONSTRAINT_STATE_H
17 template<
typename Real>
20 const Ptr<Constraint_SimOpt<Real>>
con_;
21 const Ptr<const Vector<Real>>
z_;
29 bool inSolve =
false);
41 void setParameter(
const std::vector<Real> ¶m)
override;
SimConstraint(const Ptr< Constraint_SimOpt< Real >> &con, const Ptr< const Vector< Real >> &z, bool inSolve=false)
Ptr< Vector< Real > > ijv_
void value(Vector< Real > &c, const Vector< Real > &u, Real &tol) override
Evaluate the constraint operator at .
Defines the linear algebra or vector space interface.
void applyAdjointJacobian(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &u, Real &tol) override
Apply the adjoint of the the constraint Jacobian at , , to vector .
void update(const Vector< Real > &u, bool flag=true, int iter=-1) override
Update constraint functions. x is the optimization variable, flag = true if optimization variable is ...
const Ptr< const Vector< Real > > z_
void applyAdjointHessian(Vector< Real > &ahwv, const Vector< Real > &w, const Vector< Real > &v, const Vector< Real > &u, Real &tol) override
Apply the derivative of the adjoint of the constraint Jacobian at to vector in direction ...
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &u, Real &tol) override
Apply the constraint Jacobian at , , to vector .
void setParameter(const std::vector< Real > ¶m) override
const Ptr< Constraint_SimOpt< Real > > con_
Defines the constraint operator interface for simulation-based optimization.
void applyPreconditioner(Vector< Real > &pv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &g, Real &tol) override
Apply a constraint preconditioner at , , to vector . Ideally, this preconditioner satisfies the follo...
Defines the general constraint operator interface.