44 #ifndef ROL_NONLINEARLEASTSQUARESOBJECTIVE_H 45 #define ROL_NONLINEARLEASTSQUARESOBJECTIVE_H 75 const Teuchos::RCP<EqualityConstraint<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 void plus(const Vector &x)=0
Compute , where .
const Teuchos::RCP< EqualityConstraint< Real > > con_
Contains definitions of custom data types in ROL.
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
Teuchos::RCP< Vector< Real > > c1_
virtual Teuchos::RCP< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
void update(const Vector< Real > &x, bool flag=true, int iter=-1)
Update objective function.
Defines the linear algebra or vector space interface.
Teuchos::RCP< Vector< Real > > x_
const bool GaussNewtonHessian_
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
Defines the equality constraint operator interface.
Teuchos::RCP< Vector< Real > > c2_
void setParameter(const std::vector< Real > ¶m)
NonlinearLeastSquaresObjective(const Teuchos::RCP< EqualityConstraint< Real > > &con, const Vector< Real > &optvec, const Vector< Real > &convec, const bool GNH=false)
Constructor.
Teuchos::RCP< 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.