benchmarkfcns.mccormickn2

benchmarkfcns.mccormickn2(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 McCormick N. 2 benchmark function. mccormickn2 is an alias for mccormick. Properties:

  • Global minimum: -1.9133

  • Location of global minimum: (-0.54719, -1.54719)

  • Number of dimensions: 2

  • Recommended domain: [-1.5, 4]x[-3, 4]

  • Modality: multimodal

Mathematical Definition

\[f(x, y) = \sin(x + y) + (x - y)^2 - 1.5x + 2.5y + 1\]

Visualization