A minimization procedure should stop when one of the following conditions is true:

- A minimum has been found to within the user-specified precision.
- A user-specified maximum number of iterations has been reached.
- An error has occurred.

The handling of these conditions is under user control. The functions below allow the user to test the precision of the current result.

__Function:__int**gsl_multimin_test_gradient***(const gsl_vector **`g`,double`epsabs`)-
This function tests the norm of the gradient
`g`against the absolute tolerance`epsabs`. The gradient of a multidimensional function goes to zero at a minimum. The test returns`GSL_SUCCESS`

if the following condition is achieved,and returns

`GSL_CONTINUE`

otherwise. A suitable choice of`epsabs`can be made from the desired accuracy in the function for small variations in @math{x}. The relationship between these quantities is given by @c{$\delta f = g\,\delta x$} @math{\delta f = g \delta x}.

Go to the first, previous, next, last section, table of contents.