10 #ifndef ROL_SEMISMOOTHNEWTONPROJECTION_H
11 #define ROL_SEMISMOOTHNEWTONPROJECTION_H
14 #include "ROL_ParameterList.hpp"
19 template<
typename Real>
67 const Ptr<Constraint<Real>>
con_;
68 const Ptr<BoundConstraint<Real>>
bnd_;
69 const Ptr<const Vector<Real>>
y_;
78 const Real alpha = 1e-4)
124 std::ostream &stream = std::cout)
const;
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 .
Ptr< Vector< Real > > lnew_
Ptr< Krylov< Real > > krylov_
void project(Vector< Real > &x, std::ostream &stream=std::cout) override
SemismoothNewtonProjection(const Vector< Real > &xprim, const Vector< Real > &xdual, const Ptr< BoundConstraint< Real >> &bnd, const Ptr< Constraint< Real >> &con, const Vector< Real > &mul, const Vector< Real > &res)
void solve_newton_system(Vector< Real > &s, const Vector< Real > &r, const Vector< Real > &y, const Real mu, const Real rho, int &iter, int &flag) const
virtual void axpy(const Real alpha, const Vector &x)
Compute where .
const Ptr< const Vector< Real > > y_
const Ptr< BoundConstraint< Real > > bnd_
void applyInverse(Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const
Apply inverse of linear operator.
Defines the linear algebra or vector space interface.
Ptr< Vector< Real > > dlam_
void apply(Vector< Real > &Jx, const Vector< Real > &x, Real &tol) const
Apply linear operator.
const Ptr< Vector< Real > > xdual_
void apply(Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const
Apply linear operator.
Provides the interface to apply a linear operator.
Provides the interface to apply upper and lower bound constraints.
Real residual(Vector< Real > &r, const Vector< Real > &y) const
Jacobian(const Ptr< Constraint< Real >> &con, const Ptr< BoundConstraint< Real >> &bnd, const Ptr< const Vector< Real >> &y, const Ptr< Vector< Real >> &xdual, const Ptr< Vector< Real >> &xprim, const Real alpha=1e-4)
Real compute_tolerance() const
const Ptr< Constraint< Real > > con_
const Ptr< Vector< Real > > xprim_
Ptr< Vector< Real > > xnew_
void project_ssn(Vector< Real > &x, Vector< Real > &lam, Vector< Real > &dlam, std::ostream &stream=std::cout) const
virtual void set(const Vector &x)
Set where .
void update_primal(Vector< Real > &y, const Vector< Real > &x, const Vector< Real > &lam) const
Defines the general constraint operator interface.