Factory#

stochopy.factory.ackley(x)[source]#

The Ackley function.

Parameters:

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

Returns:

The value of the Ackley function.

Return type:

float

stochopy.factory.griewank(x)[source]#

The Griewank function.

Parameters:

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

Returns:

The value of the Griewank function.

Return type:

float

stochopy.factory.quartic(x)[source]#

The Quartic function.

Parameters:

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

Returns:

The value of the Quartic function.

Return type:

float

stochopy.factory.rastrigin(x)[source]#

The Rastrigin function.

Parameters:

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

Returns:

The value of the Rastrigin function.

Return type:

float

stochopy.factory.rosenbrock(x)[source]#

The Rosenbrock function.

Parameters:

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

Returns:

The value of the Rosenbrock function.

Return type:

float

stochopy.factory.sphere(x)[source]#

The Sphere function.

Parameters:

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

Returns:

The value of the Sphere function.

Return type:

float

stochopy.factory.styblinski_tang(x)[source]#

The Styblinski-Tang function.

Parameters:

x (array_like) – 1-D array of points at which the Styblinski-Tang function is to be computed.

Returns:

The value of the Styblinski-Tang function.

Return type:

float