benchmarkfcns.pricen2

benchmarkfcns.pricen2(arg0: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.c_contiguous']) Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]']

Computes the value of the Price N. 2 (Periodic) benchmark function. SCORES = pricen2(X) computes the value of the Price N. 2 function at point X. pricen2 is an alias for periodic. Properties:

  • Global minimum: 0.9

  • Location of global minimum: (0, 0, …, 0)

  • Number of dimensions: n

  • Recommended domain: [-10, 10]^n

  • Modality: multimodal

Mathematical Definition

\[f(\textbf{x}) = 1 + \sum_{i=1}^{n} \sin^2(x_i) - 0.1 \exp(-\sum_{i=1}^{n} x_i^2)\]

Visualization