de.benchmarks

Provides some benchmark problems to global optimization.

de.benchmarks.f_ackley(x, a, b, c)[source]

Define the benchmark Ackley function.

Parameters:
  • x (numpy.ndarray) – The function’s argument array.
  • a (float) – Function’s constant.
  • b (float) – Function’s constant.
  • c (float) – Function’s constant.
Returns:

The evaluated function at the given input array.

Return type:

float

de.benchmarks.f_rosenbrock(x)[source]

Define the benchmark Rosenbrock function.

Parameters:x (numpy.ndarray) – The function’s argument array.
Returns:The evaluated function at the given input array.
Return type:float