benchmarkfcns.schafferf7

benchmarkfcns.schafferf7(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 Schaffer F7 benchmark function. SCORES = schafferf7(X) computes the value of the Schaffer F7 function at point X. schafferf7 accepts a matrix of size M-by-N and returns a vector SCORES of size M-by-1 in which each row contains the function value for the corresponding row of X. Properties:

  • Global minimum: 0

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

  • Number of dimensions: n

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

  • Modality: multimodal

Mathematical Definition

Visualization

schafferf7 landscape