Keane Function
Mathematical Definition
\[f(x,y)=-\frac{\sin^2(x-y)\sin^2(x+y)}{\sqrt{x^2+y^2}}\]Plots
Contour of the function is 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 [0, 10]$ for $i=1, 2$.
Global Minima
The function has two global minima $f(\textbf{x}^{\ast})=0.673667521146855$ at
- $\textbf{x}^{\ast} = (1.393249070031784,0)$.
- $\textbf{x}^{\ast} = (0,1.393249070031784)$.
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 Keane Function with MATLAB is provided below.
The function can be represented in Latex as follows:
References:
- Momin Jamil and Xin-She Yang, A literature survey of benchmark functions for global optimization problems, Int. Journal of Mathematical Modelling and Numerical Optimisation}, Vol. 4, No. 2, pp. 150–194 (2013), arXiv:1308.4008
- http://al-roomi.org/benchmarks/unconstrained/2-dimensions/135-keane-s-function