Bohachevsky N. 1 Function
Mathematical Definition
\[f(x, y) = x^2 + 2y^2 -0.3cos(3\pi x)-0.4cos(4\pi y)+0.7\]Plots
The contour of the function:
Description and Features
- The function is continuous.
- The function is convex.
- The function is defined on 2-dimensional space.
- The function is unimodal.
Input Domain
The function can be defined on any input domain but it is usually evaluated on $x_i \in [-100, 100]$ for $i = 1, 2$.
Global Minima
The function has one local minimum at: $f(\textbf{x}^{\ast}) = 0$ at $\textbf{x}^{\ast} = (0, 0)$
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 Bohachevskyn N. 1 Function with MATLAB is provided below.
The function can be represented in Latex as follows:
References:
- http://www.sfu.ca/~ssurjano/boha.html