BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
MinimizerFactory.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Fit/Kernel/MinimizerFactory.h
6 //! @brief Defines class MinimizerFactory.
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 #ifndef BORNAGAIN_FIT_KERNEL_MINIMIZERFACTORY_H
16 #define BORNAGAIN_FIT_KERNEL_MINIMIZERFACTORY_H
17 
19 #include <string>
20 
21 class IMinimizer;
22 
23 //! Factory to create minimizers.
24 //! @ingroup fitting
25 
27 public:
28  static IMinimizer* createMinimizer(const std::string& minimizerName,
29  const std::string& algorithmType = "",
30  const std::string& optionString = "");
31 
32  static void printCatalog();
33 
34  static std::string catalogToString();
35 
36  static std::string catalogDetailsToString();
37 
38  static const MinimizerCatalog& catalog();
39 };
40 
41 #endif // BORNAGAIN_FIT_KERNEL_MINIMIZERFACTORY_H
Defines class MinimizerCatalog.
Abstract base class for all kind minimizers.
Definition: IMinimizer.h:30
Hard-coded information about all minimizers available.
Factory to create minimizers.
static void printCatalog()
static const MinimizerCatalog & catalog()
static std::string catalogDetailsToString()
Returns multi-line string representing detailed catalog content: minimizer names, list of their algor...
static std::string catalogToString()
Returns multi-line string representing catalog content: minimizer names and list of their algorithms.
static IMinimizer * createMinimizer(const std::string &minimizerName, const std::string &algorithmType="", const std::string &optionString="")