|
BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Wrapper for the CERN ROOT Genetic minimizer. More...
Inheritance diagram for GeneticMinimizer:Public Member Functions | |
| void | setTolerance (double value) |
| Sets tolerance on the function value at the minimum. More... | |
| double | tolerance () const |
| void | setPrintLevel (int value) |
| Sets minimizer internal print level. | |
| int | printLevel () const |
| void | setMaxIterations (int value) |
| Sets maximum number of iterations to try at each step. | |
| int | maxIterations () const |
| void | setPopulationSize (int value) |
| Sets population size. | |
| int | populationSize () const |
| void | setRandomSeed (int value) |
| Sets random seed. | |
| int | randomSeed () const |
| std::string | statusToString () const override |
| Returns string representation of current minimizer status. | |
| std::map< std::string, std::string > | statusMap () const override |
| Returns map of string representing different minimizer statuses. | |
Public Member Functions inherited from RootMinimizerAdapter | |
| Fit::MinimizerResult | minimize_scalar (fcn_scalar_t fcn, Fit::Parameters parameters) override |
| run minimization | |
| Fit::MinimizerResult | minimize_residual (fcn_residual_t fcn, Fit::Parameters parameters) override |
| std::string | minimizerName () const override final |
| Returns name of the minimizer. | |
| std::string | algorithmName () const override final |
| Returns name of the minimization algorithm. | |
| void | setParameters (const Fit::Parameters ¶meters) |
| double | minValue () const override final |
| Returns minimum function value. | |
| MinimizerOptions & | options () |
| const MinimizerOptions & | options () const |
| bool | providesError () const |
| Returns true if minimizer provides error and error matrix. | |
| void | setOptions (const std::string &optionString) override final |
| Sets option string to the minimizer. | |
Public Member Functions inherited from IMinimizer | |
| IMinimizer (const IMinimizer &other)=delete | |
| IMinimizer & | operator= (const IMinimizer &other)=delete |
| virtual void | clear () |
| clear resources (parameters) for consecutives minimizations | |
| virtual bool | requiresResiduals () |
| Returns true if minimizer computations are residual-based, false otherwise. | |
Protected Member Functions | |
| void | propagateOptions () override |
| const root_minimizer_t * | rootMinimizer () const override |
| void | setParameter (unsigned int index, const Fit::Parameter &par) override |
| virtual void | setParameter (unsigned int index, const Fit::Parameter &par) |
Protected Member Functions inherited from RootMinimizerAdapter | |
| RootMinimizerAdapter (const MinimizerInfo &minimizerInfo) | |
| Fit::MinimizerResult | minimize (Fit::Parameters parameters) |
| void | propagateResults (Fit::Parameters ¶meters) |
| Propagates results of minimization to fit parameter set. | |
| size_t | fitDimension () const |
| Returns number of fit parameters defined (i.e. dimension of the function to be minimized). | |
| std::vector< double > | parValuesAtMinimum () const |
| Returns value of the variables at minimum. | |
| std::vector< double > | parErrorsAtMinimum () const |
| Returns errors of the variables at minimum. | |
| root_minimizer_t * | rootMinimizer () |
| template<class T > | |
| OptionContainer::option_t | addOption (const std::string &optionName, T value, const std::string &description="") |
| template<class T > | |
| void | setOptionValue (const std::string &optionName, T value) |
| template<class T > | |
| T | optionValue (const std::string &optionName) const |
Additional Inherited Members | |
Public Types inherited from RootMinimizerAdapter | |
| typedef ROOT::Math::Minimizer | root_minimizer_t |
Wrapper for the CERN ROOT Genetic minimizer.
Definition at line 31 of file GeneticMinimizer.h.
| void GeneticMinimizer::setTolerance | ( | double | value | ) |
Sets tolerance on the function value at the minimum.
Minimization will stop when the estimated vertical distance to the minimum (EDM) is less than 0.001*tolerance*ErrorDef. Here ErrorDef=1.0 for chi squared fit and ErrorDef=0.5 for negative log likelihood fit.
Definition at line 53 of file GeneticMinimizer.cpp.