easom
The Easom function has several local minima. It is unimodal, and the global minimum has a small area relative to the search space [1].
of = easom(x)
Input variables
Name | Description | Type |
---|---|---|
x | Current design variables of the i agent. | List |
Output variables
Name | Description | Type |
---|---|---|
of | Objective function value of the i agent. | Float |
Problem
\[ f(\mathbf{x}) = -\cos{x_{1}} \cos{x_{2}} exp \left ( -\left ( x_{1} - \pi \right )^2 -\left ( x_{2} - \pi \right )^2 \right ) \] | (1) |
\[ x_{i} \in [-100, 100], i=1,2; \;...\; f(\mathbf{x}^*) = -1, \; \mathbf{x}^* = (\pi, \pi) \] | (2) |
Example 1
Considering the design variable \(\mathbf{x} = [0,0]\), what value does the objective function expect?
# Data
x = [0, 0]
# Call function
of = easom(x)
# Output details
print("of_best easom: of = {:.4f}".format(of))
of_best easom: of = -0.0000