const gsl_min_fminimizer_type * T = gsl_min_fminimizer_goldensection; gsl_min_fminimizer * s = gsl_min_fminimizer_alloc (T);
If there is insufficient memory to create the minimizer then the function
returns a null pointer and the error handler is invoked with an error
code of GSL_ENOMEM
.
If the interval given does not contain a minimum, then the function
returns an error code of GSL_FAILURE
.
gsl_min_fminimizer_set
but uses
the values f_minimum, f_lower and f_upper instead of
computing f(minimum)
, f(x_lower)
and f(x_upper)
.
printf("s is a '%s' minimizer\n", gsl_min_fminimizer_name (s));
would print something like s is a 'brent' minimizer
.