cbx.objectives.Michalewicz#

class cbx.objectives.Michalewicz(d=2, m=10)[source]#

Bases: cbx_objective

Michalewicz function is a function with many local minima and one global minimum [1]. It is defined as

\[f(x,y) = -\sum_{i=1}^d \sin(x_i)\cdot \left(\sin\left(\frac{i x_i^2}{\pi}\right)\right)^{2m},\]

where \(d\) denotes the dimension and the parameter \(m\) is ususally chosen as \(m=10\).

Parameters:

None

Visualization#

(Source code, png, hires.png, pdf)

../../_images/cbx-objectives-Michalewicz-1.png

References