#include <gsl_mmin_conf.h>
See an example for the usage of this class in Multidimensional minimizer example .
gsl_vector
to the templated vector type. This can be fixed, probably by rewriting take_step to produce a vec_t &x1 rather than a gsl_vector *x1;max_iter
has not been included here, because it was not really used in the original GSL code for these minimizers.Default template arguments
param_t
- no defaultfunc_t
- multi_funct<param_t>vec_t
- ovector_basealloc_vec_t
- ovectoralloc_t
- ovector_allocdfunc_t
- grad_funct<param_t,ovector_base>auto_grad_t
- gradient<param_t,func_t,ovector_base>def_auto_grad_t
- simple_grad<param_t,func_t,ovector_base> Definition at line 415 of file gsl_mmin_conf.h.
Public Member Functions | |
virtual int | iterate () |
Perform an iteration. | |
virtual const char * | type () |
Return string denoting type("gsl_mmin_conf"). | |
virtual int | allocate (size_t n) |
Allocate the memory. | |
virtual int | free () |
Free the allocated memory. | |
int | restart () |
Reset the minimizer to use the current point as a new starting point. | |
virtual int | set (vec_t &x, double u_step_size, double tol_u, func_t &ufunc, param_t &pa) |
Set the function and initial guess. | |
virtual int | set_de (vec_t &x, double u_step_size, double tol_u, func_t &ufunc, dfunc_t &udfunc, param_t &pa) |
Set the function and initial guess. | |
virtual int | mmin (size_t nn, vec_t &xx, double &fmin, param_t &pa, func_t &ufunc) |
Calculate the minimum min of func w.r.t the array x of size nvar . | |
virtual int | mmin_de (size_t nn, vec_t &xx, double &fmin, param_t &pa, func_t &ufunc, dfunc_t &udfunc) |
Calculate the minimum min of func w.r.t the array x of size nvar . | |
Data Fields | |
double | lmin_tol |
Tolerance for the line minimization (default ![]() | |
double | step_size |
Size of the initial step (default 0.01). | |
Protected Attributes | |
alloc_vec_t | avt5 |
Temporary vector. | |
alloc_vec_t | avt6 |
Temporary vector. | |
alloc_vec_t | avt7 |
Temporary vector. | |
alloc_vec_t | avt8 |
Temporary vector. | |
The original variables from the GSL state structure | |
int | iter |
Iteration number. | |
double | step |
Stepsize. | |
double | tol |
Tolerance. | |
gsl_vector * | x1 |
Desc. | |
gsl_vector * | dx1 |
Desc. | |
gsl_vector * | x2 |
Desc. | |
double | pnorm |
Desc. | |
gsl_vector * | p |
Desc. | |
double | g0norm |
Desc. | |
gsl_vector * | g0 |
Desc. | |
Store the arguments to set() so we can use them for iterate() | |
gsl_vector * | ugx |
Proposed minimum. | |
gsl_vector * | ugg |
Gradient. | |
gsl_vector * | udx |
Proposed step. | |
double | it_min |
Desc. |
virtual int allocate | ( | size_t | n | ) | [inline, virtual] |
Definition at line 600 of file gsl_mmin_conf.h.
virtual int set | ( | vec_t & | x, | |
double | u_step_size, | |||
double | tol_u, | |||
func_t & | ufunc, | |||
param_t & | pa | |||
) | [inline, virtual] |
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page