BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
GSLMultiMinimizer class , for minimizing multi-dimensional function using derivatives
Definition at line 53 of file GSLMultiMinimizer.h.
Public Member Functions | |
GSLMultiMinimizer (ROOT::Math::EGSLMinimizerType type) | |
~GSLMultiMinimizer () | |
void | CreateMinimizer (unsigned int n) |
create the minimizer from the type and size More... | |
double * | Gradient () const |
gradient value at the minimum More... | |
int | Iterate () |
double | Minimum () const |
function value at the minimum More... | |
std::string | Name () const |
int | Restart () |
restart minimization from current point More... | |
int | Set (const ROOT::Math::IMultiGradFunction &func, const double *x, double stepSize, double tol) |
int | TestGradient (const double *g, double absTol) const |
test gradient (require a vector gradient) More... | |
int | TestGradient (double absTol) const |
test gradient (ask from minimizer gradient vector) More... | |
double * | X () const |
x values at the minimum More... | |
Private Member Functions | |
GSLMultiMinimizer (const GSLMultiMinimizer &) | |
GSLMultiMinimizer & | operator= (const GSLMultiMinimizer &rhs) |
Private Attributes | |
GSLMultiMinDerivFunctionWrapper | fFunc |
gsl_multimin_fdfminimizer * | fMinimizer |
const gsl_multimin_fdfminimizer_type * | fType |
gsl_vector * | fVec |
|
inline |
Default constructor
Definition at line 60 of file GSLMultiMinimizer.h.
References fType, ROOT::Math::kConjugateFR, ROOT::Math::kConjugatePR, ROOT::Math::kSteepestDescent, ROOT::Math::kVectorBFGS, ROOT::Math::kVectorBFGS2, and MATH_INFO_MSG.
|
inline |
|
inlineprivate |
|
inline |
create the minimizer from the type and size
Definition at line 141 of file GSLMultiMinimizer.h.
References fMinimizer, and fType.
Referenced by Set().
|
inline |
gradient value at the minimum
Definition at line 170 of file GSLMultiMinimizer.h.
References fMinimizer.
|
inline |
|
inline |
function value at the minimum
Definition at line 164 of file GSLMultiMinimizer.h.
References fMinimizer.
|
inline |
|
inlineprivate |
Assignment operator
Definition at line 115 of file GSLMultiMinimizer.h.
|
inline |
restart minimization from current point
Definition at line 177 of file GSLMultiMinimizer.h.
References fMinimizer.
|
inline |
set the function to be minimize the initial minimizer parameters, step size and tolerance in the line search
Definition at line 126 of file GSLMultiMinimizer.h.
References CreateMinimizer(), fFunc, fMinimizer, fVec, ROOT::Math::GSLMultiMinDerivFunctionWrapper::GetFunc(), ROOT::Math::IGradientFunctionMultiDimTempl< T >::NDim(), and ROOT::Math::GSLMultiMinDerivFunctionWrapper::SetFunction().
|
inline |
test gradient (require a vector gradient)
Definition at line 190 of file GSLMultiMinimizer.h.
References fVec.
|
inline |
test gradient (ask from minimizer gradient vector)
Definition at line 183 of file GSLMultiMinimizer.h.
References fMinimizer.
|
inline |
|
private |
Definition at line 202 of file GSLMultiMinimizer.h.
Referenced by Set().
|
private |
Definition at line 201 of file GSLMultiMinimizer.h.
Referenced by ~GSLMultiMinimizer(), CreateMinimizer(), Gradient(), Iterate(), Minimum(), Name(), Restart(), Set(), TestGradient(), and X().
|
private |
Definition at line 203 of file GSLMultiMinimizer.h.
Referenced by GSLMultiMinimizer(), and CreateMinimizer().
|
mutableprivate |
Definition at line 205 of file GSLMultiMinimizer.h.
Referenced by ~GSLMultiMinimizer(), Set(), and TestGradient().