2012-08-31T17:02:03Z pmendes@uchc.edu Mendes Pedro University of Connecticut School of Medicine

Rastrigin's function

Part of a set of benchmark functions for global optimisation

  • variables: 2
  • interval: [-5.12,5.12] (all variables)
  • minimum: (0,0)
  • minimum value: 0

f(x1,x2)= 20 + (x12 - 10 cos( 2π x1)) + (x22 - 10 cos( 2π x2))


Rastrigin’s function has a large number of local minima (more than 100 in the search space), however they are arranged in a regular fashion with symetry. This function is separable and in principle could be minimized as a set of 2 independent minimizations (one in each coordinate).

Defined in: Rastrigin, L.A. (1974) Systems of extremal control Zinatne, Riga.

CC0 1.0 Universal: To the extent possible under law, all copyright and related or neighbouring rights to this encoded model have been dedicated to the public domain worldwide. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. Please refer to CC0 Public Domain Dedication for more information.

2012-08-31T17:29:26Z 2012-08-31T17:02:24Z 2012-08-31T17:02:23Z 20+(<CN=Root,Model=Rastrigin's function,Vector=Values[x1],Reference=InitialValue>^2-10*cos(2*pi*<CN=Root,Model=Rastrigin's function,Vector=Values[x1],Reference=InitialValue>))+(<CN=Root,Model=Rastrigin's function,Vector=Values[x2],Reference=InitialValue>^2-10*cos(2*pi*<CN=Root,Model=Rastrigin's function,Vector=Values[x2],Reference=InitialValue>)) 0 0 0 0
<CN=Root,Model=Rastrigin's function,Vector=Values[Rastrigin's function],Reference=InitialValue> This table outputs time and the target function of the optimization.
Automatically generated report.