Class mmin_wrapper_gsl (o2scl)¶
-
template<class
func_t
= multi_funct, classvec_t
= boost::numeric::ublas::vector<double>, classdfunc_t
= grad_funct, classauto_grad_t
= gradient<multi_funct, boost::numeric::ublas::vector<double>>>
classo2scl
::
mmin_wrapper_gsl
: public o2scl::mmin_wrap_gsl¶ Wrapper class for the mmin_bfgs2 minimizer.
This is a reimplmentation of the internal GSL wrapper for function calls in the BFGS minimizer
cache keys
-
double
f_cache_key
¶
-
double
df_cache_key
¶
-
double
x_cache_key
¶
-
double
g_cache_key
¶
-
size_t
dim
¶ Number of minimization dimensions.
-
void
moveto
(double alpha)¶ Move to a new point, using the cached value if possible.
-
double
slope
()¶ Compute the slope.
-
double
wrap_f
(double alpha)¶ Evaluate the function.
-
double
wrap_df
(double alpha)¶ Evaluate the derivative.
-
void
wrap_fdf
(double alpha, double *f, double *df)¶ Evaluate the function and the derivative.
-
void
prepare_wrapper
(func_t &ufunc, dfunc_t *udfunc, vec_t &t_x, double f, vec_t &t_g, vec_t &t_p, auto_grad_t *ag)¶ Initialize wrapper.
-
void
change_direction
()¶ Convert cache values to the new minimizer direction.
Convert the cache values from the end of the current minimisation to those needed for the start of the next minimisation, alpha=0
-
double