ROL
ROL_Objective_FSsolver.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Rapid Optimization Library (ROL) Package
4 //
5 // Copyright 2014 NTESS and the ROL contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef ROL_OBJECTIVE_FSSOLVER_H
11 #define ROL_OBJECTIVE_FSSOLVER_H
12 
13 #include "ROL_Objective.hpp"
14 
15 namespace ROL {
16 
17 template<typename Real>
18 class Objective_FSsolver : public Objective<Real> {
19 public:
20  Real value( const Vector<Real> &u, Real &tol ) override;
21  void gradient( Vector<Real> &g, const Vector<Real> &u, Real &tol ) override;
22  void hessVec( Vector<Real> &hv, const Vector<Real> &v, const Vector<Real> &u, Real &tol ) override;
23 
24 }; // class Objective_FSsolver
25 
26 } // namespace ROL
27 
29 
30 #endif
Provides the interface to evaluate objective functions.
Defines the linear algebra or vector space interface.
Definition: ROL_Vector.hpp:46
void gradient(Vector< Real > &g, const Vector< Real > &u, Real &tol) override
Compute gradient.
Real value(const Vector< Real > &u, Real &tol) override
Compute value.
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, Real &tol) override
Apply Hessian approximation to vector.