BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IFunctionAdapter.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Fit/Adapter/IFunctionAdapter.h
6 //! @brief Defines interface IFunctionAdapter.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_FIT_ADAPTER_IFUNCTIONADAPTER_H
21 #define BORNAGAIN_FIT_ADAPTER_IFUNCTIONADAPTER_H
22 
23 namespace mumufit {
24 
25 //! Base class for objective function adapters, which converts user functions
26 //! to minimize into the function which minimization machinery expects.
27 
29 public:
31  virtual ~IFunctionAdapter();
32 
33  int numberOfCalls() const;
34  int numberOfGradientCalls() const;
35 
36 protected:
39 };
40 
41 } // namespace mumufit
42 
43 #endif // BORNAGAIN_FIT_ADAPTER_IFUNCTIONADAPTER_H
44 #endif // USER_API
Base class for objective function adapters, which converts user functions to minimize into the functi...
The multi-library, multi-algorithm fit wrapper library.