15 #define ISZERO(d) ((d)==0.0)
18 double new_value,
const double& _fprof,
const int underflow_flag,
19 double global_min,
const double& _penalties,
const double& _final_weight)
21 double& penalties=(
double&) _penalties;
22 double& fprof=(
double&) _fprof;
23 double& final_weight=(
double&) _final_weight;
26 int max_profile_phases=3;
29 while (profile_phase <= max_profile_phases)
78 double weight =
pow(120.0,profile_phase);
81 weight /= (sigma*sigma);
116 df1b2variable::adpool_counter=0;
122 cerr <<
"Error allocating memory for lapprox" <<
endl;
182 if (fmc.
itn>itnsave && diff <
pow(.1,iprof)*sigma)
188 g=(*lapprox)(
x,f,
this);
210 vf+=weight*
square(new_value-tv);
255 penalties=weight*(new_value-tv)*(new_value-tv);
267 fprof=global_min+20.0;
static likeprof_params * likeprofptr[500]
laplace_approximation_calculator * lapprox
static dvar_vector * variance_components_vector
static void reset_all(const dvector &)
Description not yet available.
static adpool * adpool_vector[]
static void set_no_derivatives(void)
Description not yet available.
int separable_calls_counter
static void set_NO_DERIVATIVES(void)
Disable accumulation of derivative information.
Description not yet available.
Vector of double precision numbers.
static void xinit_all(const dvector &x)
Description not yet available.
static int separable_flag
static unsigned int nvar_vector[]
void get_hessian_components_banded_lme(function_minimizer *pfmin)
Description not yet available.
static dvariable reset(const dvar_vector &x)
void fmin(const double &f, const dvector &x, const dvector &g)
Function fmin contains Quasi-Newton function minimizer with inexact line search using Wolfe condition...
static void restore_start_phase(void)
void check_hessian_type(const dvector &_x, function_minimizer *)
Description not yet available.
void check_hessian_type2(function_minimizer *pfmin)
Description not yet available.
virtual dvariable variable(void)=0
void gradcalc(int nvar, const dvector &g)
static void save_varsptr(void)
Description not yet available.
void deallocate(void)
Description not yet available.
prnstream & endl(prnstream &)
Description not yet available.
static void set_active_only_random_effects(void)
static dvector maximum_function_evaluations
static int max_number_phases
int indexmax() const
Get maximum valid index.
static objective_function_value * pobjfun
Description not yet available.
static void xinit(const dvector &x)
Functions and variables for function minimizer.
static int nvarcalc_all(void)
Description not yet available.
static void set_inactive_random_effects(void)
void prof_minimize_re(int iprof, double sigma, double new_value, const double &fprof, const int underflow_flag, double global_min, const double &penalties, const double &final_weight)
int option_match(int argc, char *argv[], const char *string)
Checks if the program has been invoked with a particular command line argument ("string").
Description not yet available.
static void set_YES_DERIVATIVES(void)
Enable accumulation of derivative information.
dvector value(const df1_one_vector &v)
virtual void userfunction(void)=0
static init_df1b2vector * py
static int adpool_counter
static void restore_varsptr(void)
Description not yet available.
static dvector convergence_criteria
double square(const double value)
Return square of value; constant object.
Fundamental data type for reverse mode automatic differentiation.
static void set_inactive_only_random_effects(void)
d3_array pow(const d3_array &m, int e)
Description not yet available.