BornAgain  1.19.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 reflection and scattering
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_FIT_MINIMIZER_MINIMIZEROPTIONS_H
21 #define BORNAGAIN_FIT_MINIMIZER_MINIMIZEROPTIONS_H
22 
24 
25 //! Collection of internal minimizer settings.
26 //! @ingroup fitting_internal
27 
29 public:
30  //! Returns string with all options (i.e. "Strategy=1;Tolerance=0.01;")
31  std::string toOptionString() const;
32 
33  //! Set options from their string representation
34  void setOptionString(const std::string& options);
35 
36 private:
37  void processCommand(const std::string& command);
38 };
39 
40 #endif // BORNAGAIN_FIT_MINIMIZER_MINIMIZEROPTIONS_H
41 #endif // USER_API
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.