22#if defined(DEBUG) || defined(WARNINGMSG)
42 std::cout <<
"Initial gradient calculator - params " << par.
Vec() << std::endl;
47 for(
unsigned int i = 0; i <
n; i++) {
50 double var = par.
Vec()(i);
53 double sav2 = sav + werr;
60 double vplu = var2 - var;
68 double vmin = var2 - var;
71 double dirin = std::max(0.5*(
fabs(vplu) +
fabs(vmin)), gsmin );
73 double gstep = std::max(gsmin, 0.1*dirin);
74 double grd = g2*dirin;
76 if(gstep > 0.5) gstep = 0.5;
83 std::cout <<
"computing initial gradient for parameter " <<
Trafo().
Name(exOfIn) <<
" value = " << var
84 <<
" [ " << vmin <<
" , " << vplu <<
" ] " <<
"dirin " << dirin <<
" grd " << grd <<
" g2 " << g2 << std::endl;
const MnStrategy & Strategy() const
const MnUserTransformation & fTransformation
const MnMachinePrecision & Precision() const
const MnUserTransformation & Trafo() const
double GradTolerance() const
unsigned int Ncycle() const
virtual FunctionGradient operator()(const MinimumParameters &) const
double StepTolerance() const
unsigned int size() const
const MnAlgebraicVector & Vec() const
double LowerLimit() const
double UpperLimit() const
Sets the relative floating point (double) arithmetic precision.
double Eps2() const
eps2 returns 2*sqrt(eps)
double GradientStepTolerance() const
double GradientTolerance() const
unsigned int GradientNCycles() const
CPyCppyy::Parameter Parameter
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...