Mathematical Definition
\[f(\textbf{x}) = f(x_1, ..., x_n)= \frac{1}{2}\sum_{i=1}^{n} (x_i^4 -16x_i^2+5x_i)\]
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 n-dimensional space.
- The function is multimodal.
Input Domain
The function can be defined on any input domain but it is usually evaluated on $x \in [-5, 5]$ for all $i = 1,…,n$.
Global Minima
The function has one global minimum at: $f(x^*)=-39.16599\textbf{n}$ at $\textbf{x}^{\ast} = (-2.903534, …, -2.903534)$.
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 Styblinski-Tank Function with MATLAB is provided below.
The function can be represented in Latex as follows:
References: