BornAgain  1.18.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 scattering at grazing incidence
4 //
5 //! @file Fit/Minimizer/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_MINIMIZER_MINIMIZERFACTORY_H
16 #define BORNAGAIN_FIT_MINIMIZER_MINIMIZERFACTORY_H
17 
19 #include <string>
20 
21 class IMinimizer;
22 
23 //! Factory to create minimizers.
24 //! @ingroup fitting
25 
27 {
28 public:
29  static IMinimizer* createMinimizer(const std::string& minimizerName,
30  const std::string& algorithmType = "",
31  const std::string& optionString = "");
32 
33  static void printCatalog();
34 
35  static std::string catalogToString();
36 
37  static std::string catalogDetailsToString();
38 
39  static const MinimizerCatalog& catalog();
40 };
41 
42 #endif // BORNAGAIN_FIT_MINIMIZER_MINIMIZERFACTORY_H
Defines class MinimizerCatalog.
Pure virtual interface for all kind minimizers.
Definition: IMinimizer.h:31
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="")