14#include <BSMPT/config.h>
22class Class_Potential_Origin;
51const std::size_t Num_threads = std::thread::hardware_concurrency();
62 bool UseCMAES = UseLibCMAESDefault,
63 bool UseNLopt = UseNLoptDefault)
65 return static_cast<int>(UseCMAES) + 2 *
static_cast<int>(UseGSL) +
66 4 *
static_cast<int>(UseNLopt);
106Minimize_gen_all(
const std::shared_ptr<Class_Potential_Origin> &modelPointer,
108 std::vector<double> &Check,
109 const std::vector<double> &start,
110 const int &WhichMinimizer = WhichMinimizerDefault,
111 bool UseMultithreading =
true);
119 NOTVANISHINGATFINALTEMP = -1,
121 NUMERICALLYUNSTABLE = -3,
149 std::vector<double> EWMinimum;
166PTFinder_gen_all(
const std::shared_ptr<Class_Potential_Origin> &modelPointer,
167 const double &TempStart,
168 const double &TempEnd,
169 const int &WhichMinimizer = WhichMinimizerDefault,
170 bool UseMultithreading =
true);
183[[deprecated(
"Will call Minimize_gen_all_tree_level with GetSMConstants(). "
186 "to ensure consistent SM constants through all "
187 "routines.")]] std::vector<double>
189 const std::vector<double> &par,
190 const std::vector<double> &parCT,
191 std::vector<double> &Check,
192 const std::vector<double> &start,
193 int WhichMinimizer = WhichMinimizerDefault,
194 bool UseMultithreading =
true);
210 const std::vector<double> &par,
211 const std::vector<double> &parCT,
213 std::vector<double> &Check,
214 const std::vector<double> &start,
215 int WhichMinimizer = WhichMinimizerDefault,
216 bool UseMultithreading =
true);
230std::vector<std::vector<double>>
232 const std::vector<double> &StartingPoint,
233 const double &temperature,
234 int WhichMinimizer = WhichMinimizerDefault);
252std::vector<std::vector<std::pair<double, std::vector<double>>>>
254 const std::shared_ptr<Class_Potential_Origin> &model,
255 const double &StartingTemperature,
256 const double &FinalTemperature,
257 const double &StepsizeTemperature,
258 const std::vector<std::pair<double, double>> &RNGRanges,
259 const std::size_t &seed,
260 const std::size_t &NumberOfStartingPoints,
261 const int &WhichMinimizer);
EWPTReturnType PTFinder_gen_all(const std::shared_ptr< Class_Potential_Origin > &modelPointer, const double &TempStart, const double &TempEnd, const int &WhichMinimizer=WhichMinimizerDefault, bool UseMultithreading=true)
Definition Minimizer.cpp:272
std::vector< std::vector< double > > FindNextLocalMinima(const std::shared_ptr< Class_Potential_Origin > &model, const std::vector< double > &StartingPoint, const double &temperature, int WhichMinimizer=WhichMinimizerDefault)
FindNextLocalMinima finds the local minima from the given starting point at the given temperature.
Definition Minimizer.cpp:447
MinimizersToUse GetMinimizers(int WhichMinimizer)
GetMinimizers returns a struct containing the bools deciding which minimizers should be used or not.
Definition Minimizer.cpp:64
std::vector< double > Minimize_gen_all_tree_level(const ModelID::ModelIDs &Model, const std::vector< double > &par, const std::vector< double > &parCT, std::vector< double > &Check, const std::vector< double > &start, int WhichMinimizer=WhichMinimizerDefault, bool UseMultithreading=true)
Minimize_gen_all_tree_level Minimizes the tree-level potential.
Definition Minimizer.cpp:408
const bool UseNLoptDefault
UseNLoptDefault Use the NLopt minimizer in the default settings.
Definition Minimizer.h:48
constexpr int WhichMinimizerDefault
WhichMinimizerDefault default value for the Minimizers to use.
Definition Minimizer.h:96
constexpr int CalcWhichMinimizer(bool UseGSL=UseGSLDefault, bool UseCMAES=UseLibCMAESDefault, bool UseNLopt=UseNLoptDefault)
CalcWhichMinimizer Calculates the WhichMinimizer value with the given Minimizer options.
Definition Minimizer.h:61
std::vector< std::vector< std::pair< double, std::vector< double > > > > MinimaDevelopmentWithTemperature(const std::shared_ptr< Class_Potential_Origin > &model, const double &StartingTemperature, const double &FinalTemperature, const double &StepsizeTemperature, const std::vector< std::pair< double, double > > &RNGRanges, const std::size_t &seed, const std::size_t &NumberOfStartingPoints, const int &WhichMinimizer)
MinimaDevelopmentWithTemperature calculates the temperature development of several local minima.
Definition Minimizer.cpp:491
std::vector< double > Minimize_gen_all(const std::shared_ptr< Class_Potential_Origin > &modelPointer, const double &Temp, std::vector< double > &Check, const std::vector< double > &start, const int &WhichMinimizer=WhichMinimizerDefault, bool UseMultithreading=true)
Minimization of the Model Minimizes the given Potential with parameters par and CT-parameters parCT a...
Definition Minimizer.cpp:84
const bool UseLibCMAESDefault
UseLibCMAESDefault Use the Libcmaes minimizer in the default settings.
Definition Minimizer.h:39
const bool UseGSLDefault
UseGSLDefault Use the GSL minimizer in the default settings.
Definition Minimizer.h:31
MinimizerStatus
The MinimizerStatus enum for the Statusflags of the minimizer.
Definition Minimizer.h:117
ModelIDs
The ModelIDs enum containing all IDs for identifying the Models.
Definition IncludeAllModels.h:32
This classes calculates the Bounce action of the potential with a set temperature.
Definition CalculateEtaInterface.h:24
The ISMConstants struct containing all necessary SM constants.
Definition SMparam.h:24
The EWPTReturnType struct Contains the following information.
Definition Minimizer.h:145
The MinimizersToUse struct used as a return of GetMinimizers.
Definition Minimizer.h:73