Mathematical Definition
\[f(x,y)=2x^2-1.05x^4+\frac{x^6}{6}+xy+y^2\]
Plots
Two contours of the function are 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_i \in [-5, 5]$ for $i=1, 2$.
Global Minima
The function has one global minimum $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 Three-Hump Camel Function with MATLAB is provided below.
The function can be represented in Latex as follows:
References: