Mathematical Definition


Easom Function

Easom Function

Easom Function

Easom Function

The contour of the function is as presented below:

Easom Function

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.
  • The function is non-scalable.

Input Domain

The function can be defined on any input domain but it is usually evaluated on $x \in [-100, 100]$ and $y \in [-100, 100]$ .

Global Minima

The function has four global minima $f(\textbf{x}^{\ast})=-1$ at $\textbf{x}^{\ast} = (\pi,\pi)$.


An implementation of the Easom Function with MATLAB is provided below.

% Computes the value of the Easom benchmark function.
% SCORES = EASOMFCN(X) computes the value of the Easom function at point X.
% EASOMFCN accepts a matrix of size M-by-2 and returns a vetor SCORES of 
% size M-by-1 in which each row contains the function value for the 
% corresponding row of X. For more information please visit: 
% Author: Mazhar Ansari Ardeh
% Please forward any comments or bug reports to mazhar.ansari.ardeh at
% Google's e-mail service or feel free to kindly modify the repository.
function scores = easomfcn(x)
    n = size(x, 2);
    assert(n == 2, 'The Easom''s function is only defined on a 2D space.')
    X = x(:, 1);
    Y = x(:, 2);
    scores = -cos(X) .* cos(Y) .* exp(-( ((X - pi) .^2) + ((Y - pi) .^ 2)) );

The function can be represented in Latex as follows:

f(x,y)=−cos(x_1)cos(x_2) exp(−(x − \pi)^2−(y − \pi)^2)