Go to the documentation of this file.
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);
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
ROL::Ptr< Vector< Real > > x_
virtual void setParameter(const std::vector< Real > ¶m)
void update(const Vector< Real > &x, bool flag=true, int iter=-1)
Update objective function.
virtual void plus(const Vector &x)=0
Compute , where .
void setParameter(const std::vector< Real > ¶m)
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
Defines the linear algebra or vector space interface.
Defines the general constraint operator interface.
Contains definitions of custom data types in ROL.
const bool GaussNewtonHessian_
NonlinearLeastSquaresObjective(const ROL::Ptr< Constraint< Real > > &con, const Vector< Real > &optvec, const Vector< Real > &convec, const bool GNH=false)
Constructor.
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis,...
Provides the interface to evaluate nonlinear least squares objective functions.
ROL::Ptr< Vector< Real > > c1dual_
Provides the interface to evaluate objective functions.
ROL::Ptr< Vector< Real > > c2_
ROL::Ptr< Vector< Real > > c1_
const ROL::Ptr< Constraint< Real > > con_
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
Real value(const Vector< Real > &x, Real &tol)
Compute value.