lbfgsb.ackley_grad#

lbfgsb.ackley_grad(x: ndarray[tuple[Any, ...], dtype[float64]]) ndarray[tuple[Any, ...], dtype[float64]][source]#

The gradient of the Ackley function.

Parameters:

x (array_like) – 1-D array of points at which the Ackley function is to be derivated.

Returns:

The gradient of the Ackley function.

Return type:

NDArrayFloat