Mathematical Definition
\[f(x, y) = sin^2(3\pi x)+(x-1)^2(1+sin^2(3\pi y))+(y-1)^2(1+sin^2(2\pi y))\]
Plots
The contour of the function is as presented below:
Description and Features
- The function is continuous.
- The function is not convex.
- The function is defined on 2-dimensional space.
- The function is multimodal.
- The function is differentiable.
- The function is non-separable.
Input Domain
The function can be defined on any input domain but it is usually evaluated on $x \in [-10, 10]$ and $y \in [-10, 10]$ .
Global Minima
The function has one global minimum $f(\textbf{x}^{\ast})=0$ at $\textbf{x}^{\ast} = (1, 1)$.
Implementation
Python
For Python, the function is implemented in the benchmarkfcns package, which can be installed from command line with pip install benchmarkfcns
.
MATLAB
An implementation of the Levi N. 13 Function with MATLAB is provided below.
The function can be represented in Latex as follows:
References: