44 #ifndef ROL_NONLINEARLEASTSQUARESOBJECTIVE_H
45 #define ROL_NONLINEARLEASTSQUARESOBJECTIVE_H
75 const ROL::Ptr<Constraint<Real> >
con_;
91 const bool GNH =
false)
95 x_ = optvec.
dual().clone();
99 Real tol = std::sqrt(ROL_EPSILON<Real>());
100 con_->update(x,flag,iter);
115 con_->applyJacobian(*
c2_,v,x,tol);
116 con_->applyAdjointJacobian(hv,
c2_->dual(),x,tol);
127 con_->setParameter(param);
Provides the interface to evaluate objective functions.
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
virtual void plus(const Vector &x)=0
Compute , where .
ROL::Ptr< Vector< Real > > x_
NonlinearLeastSquaresObjective(const ROL::Ptr< Constraint< Real > > &con, const Vector< Real > &optvec, const Vector< Real > &convec, const bool GNH=false)
Constructor.
Contains definitions of custom data types in ROL.
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
void update(const Vector< Real > &x, bool flag=true, int iter=-1)
Update objective function.
Defines the linear algebra or vector space interface.
const bool GaussNewtonHessian_
ROL::Ptr< Vector< Real > > c2_
const ROL::Ptr< Constraint< Real > > con_
void setParameter(const std::vector< Real > ¶m)
ROL::Ptr< Vector< Real > > c1dual_
virtual void setParameter(const std::vector< Real > ¶m)
Provides the interface to evaluate nonlinear least squares objective functions.
Real value(const Vector< Real > &x, Real &tol)
Compute value.
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
Defines the general constraint operator interface.
ROL::Ptr< Vector< Real > > c1_