12 using std::istringstream;
35 "Usage -fntrap option needs two non-negative integers -- ignored.\n";
44 double & f= (
double&)_f;
60 cerr <<
"Usage -iprint option needs integer -- ignored" <<
endl;
74 cerr <<
"Usage -iprint option needs integer -- ignored" <<
endl;
96 cerr <<
"Usage -dfn option needs number -- ignored" <<
endl;
105 cerr <<
"Usage -dfn option needs positive number -- ignored" <<
endl;
146 cerr <<
"failed sanity check in "
147 "void function_minimizer::quasi_newton_block" <<
endl;
159 while (fmc.ireturn>=0)
184 for (i=1;i<=nx;i++) u(i)=1.e-3;
187 while (fmc.ireturn>=0)
196 x+=u(i)*(*negdirections)(i);
208 gu=(*negdirections)*g;
214 x+=u(i)*(*negdirections)(i);
250 df1b2variable::adpool_counter=0;
256 cerr <<
"Error allocating memory for lapprox" <<
endl;
291 output_stream <<
"Hessian type 1 " <<
endl;
294 output_stream <<
"\nBlock diagonal Hessian (Block size =" <<
298 output_stream <<
"\nBanded Hessian (Band width = " <<
lapprox->
bw <<
")\n"
302 output_stream <<
"Hessian type 4 " <<
endl;
305 cerr <<
"This can't happen" <<
endl;
323 cerr <<
"this can't happen" <<
endl;
332 while (fmc.ireturn>=0)
339 if (ifn_trap==fmc.ifn && itn_trap == fmc.itn)
341 cout <<
"we are here" <<
endl;
344 g=(*lapprox)(
x,f,
this);
370 for (i=1;i<=nx;i++) u(i)=1.e-3;
371 while (fmc.ireturn>=0)
379 x+=u(i)*(*negdirections)(i);
381 g=(*lapprox)(
x,f,
this);
382 gu=(*negdirections)*g;
388 x+=u(i)*(*negdirections)(i);
403 g=fmc.gbest(1,fmc.gbest.indexmax());
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.
virtual void deallocate()
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.
df1_two_variable fabs(const df1_two_variable &x)
static dvariable reset(const dvar_vector &x)
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.
void gradcalc(int nvar, const dvector &g)
int atoi(adstring &s)
Returns a integer converted from input s.
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
int indexmax() const
Get maximum valid index.
static objective_function_value * pobjfun
Description not yet available.
Functions and variables for function minimizer.
static int nvarcalc_all(void)
Description not yet available.
static void set_inactive_random_effects(void)
int option_match(int argc, char *argv[], const char *string)
Checks if the program has been invoked with a particular command line argument ("string").
std::ostream & get_output_stream()
void quasi_newton_block(int nvar, int crit, independent_variables &x, const dvector &g, const double &f)
Description not yet available.
Description not yet available.
void reset_gradient_stack(void)
Rewind buffer.
static void set_YES_DERIVATIVES(void)
Enable accumulation of derivative information.
dvector value(const df1_one_vector &v)
void pre_userfunction(void)
static init_df1b2vector * py
static int adpool_counter
static int get_num_quadratic_prior(void)
static void restore_varsptr(void)
Description not yet available.
static dvector convergence_criteria
Fundamental data type for reverse mode automatic differentiation.
static void set_inactive_only_random_effects(void)
static int random_effects_flag
static void get_M_calculations(void)
Description not yet available.