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