10 #ifndef ROL_NONLINEARLEASTSQUARESOBJECTIVE_H
11 #define ROL_NONLINEARLEASTSQUARESOBJECTIVE_H
38 template<
typename Real>
41 const Ptr<Constraint<Real> >
con_;
57 const bool GNH =
false);
68 void setParameter(
const std::vector<Real> ¶m)
override;
Provides the interface to evaluate objective functions.
Ptr< Vector< Real > > c1_
Real value(const Vector< Real > &x, Real &tol) override
Compute value.
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Compute gradient.
Contains definitions of custom data types in ROL.
void precond(Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply preconditioner to vector.
Defines the linear algebra or vector space interface.
const bool GaussNewtonHessian_
Ptr< Vector< Real > > c2_
void setParameter(const std::vector< Real > ¶m) override
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Update objective function.
Ptr< Vector< Real > > c1dual_
Provides the interface to evaluate nonlinear least squares objective functions.
NonlinearLeastSquaresObjective(const Ptr< Constraint< Real > > &con, const Vector< Real > &optvec, const Vector< Real > &convec, const bool GNH=false)
Constructor.
const Ptr< Constraint< Real > > con_
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply Hessian approximation to vector.
Defines the general constraint operator interface.