BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
MinimizerOptions.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Fit/Minimizer/MinimizerOptions.h
6 //! @brief Declares class MinimizerOptions.
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_MINIMIZEROPTIONS_H
16 #define BORNAGAIN_FIT_MINIMIZER_MINIMIZEROPTIONS_H
17 
19 
20 //! Collection of internal minimizer settings.
21 //! @ingroup fitting_internal
22 
24 {
25 public:
26  //! Returns string with all options (i.e. "Strategy=1;Tolerance=0.01;")
27  std::string toOptionString() const;
28 
29  //! Set options from their string representation
30  void setOptionString(const std::string& options);
31 
32 private:
33  void processCommand(const std::string& command);
34 };
35 
36 #endif // BORNAGAIN_FIT_MINIMIZER_MINIMIZEROPTIONS_H
Declares class OptionContainer.
Collection of internal minimizer settings.
void setOptionString(const std::string &options)
Set options from their string representation.
std::string toOptionString() const
Returns string with all options (i.e. "Strategy=1;Tolerance=0.01;")
void processCommand(const std::string &command)
Process single option string 'Tolerance=0.01' and sets the value to corresponding MultiOption.
Stores multi option (int,double,string) in a container.