BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
MinimizerCatalog.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Fit/Minimizer/MinimizerCatalog.h
6 //! @brief Defines class MinimizerCatalog.
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_MINIMIZERCATALOG_H
16 #define BORNAGAIN_FIT_MINIMIZER_MINIMIZERCATALOG_H
17 
19 #include <map>
20 
21 //! Hard-coded information about all minimizers available.
22 //! @ingroup fitting_internal
23 
24 /*
25 --------------------------------------------------------------------------------
26 Minimizer | Algorithms
27 --------------------------------------------------------------------------------
28 Minuit2 | Migrad Simplex Combined Scan Fumili
29 GSLMultiMin | SteepestDescent ConjugateFR ConjugatePR BFGS BFGS2
30 GSLLMA | Default
31 GSLSimAn | Default
32 Genetic | Default
33 Test | Default
34 */
35 
37 {
38 public:
40 
41  std::string toString() const;
42 
43  std::vector<std::string> minimizerNames() const;
44 
45  std::vector<std::string> algorithmNames(const std::string& minimizerName) const;
46 
47  std::vector<std::string> algorithmDescriptions(const std::string& minimizerName) const;
48 
49  const MinimizerInfo& minimizerInfo(const std::string& minimizerName) const;
50 
51 private:
52  void addMinimizerInfo(const MinimizerInfo& info);
53  std::vector<MinimizerInfo> m_minimizers;
54 };
55 
56 #endif // BORNAGAIN_FIT_MINIMIZER_MINIMIZERCATALOG_H
Declares class MinimizerInfo.
Hard-coded information about all minimizers available.
std::vector< std::string > minimizerNames() const
std::vector< std::string > algorithmDescriptions(const std::string &minimizerName) const
Returns list of algorithm's descriptions for the minimizer with a given name .
const MinimizerInfo & minimizerInfo(const std::string &minimizerName) const
Returns info for minimizer with given name.
std::vector< MinimizerInfo > m_minimizers
std::string toString() const
Returns multiline string representing catalog content.
void addMinimizerInfo(const MinimizerInfo &info)
Adds minimizer info to the catalog.
std::vector< std::string > algorithmNames(const std::string &minimizerName) const
Returns list of algorithms defined for the minimizer with a given name.
Info about a minimizer, including list of defined minimization algorithms.
Definition: MinimizerInfo.h:45