Namespaces

Types in MathNet.Numerics

Type TestFunctions

Namespace MathNet.Numerics

Static Functions

Public Static Functions

double Ackley(Double[] x)

Ackley, a function with many local minima. It is nearly flat in outer regions but has a large hole at the center. Global minimum of all zeros with f(0) = 0. Common range: [-32.768, 32.768].
http://www.sfu.ca/~ssurjano/ackley.html

double Bohachevsky1(double x, double y)

Bowl-shaped first Bohachevsky function. Global minimum of all zeros with f(0,0) = 0. Common range: [-100, 100]
http://www.sfu.ca/~ssurjano/boha.html

double DropWave(double x, double y)

Drop-Wave, a multi-modal and highly complex function with many local minima. Global minimum of all zeros with f(0) = -1. Common range: [-5.12,5.12].
http://www.sfu.ca/~ssurjano/drop.html

double Himmelblau(double x, double y)

Himmelblau, a multi-modal function: (x,y) -> (x^2+y-11)^2 + (x+y^2-7)^2 This function has 4 global minima with f(x,y) = 0. Common range: [-6,6]. Named after David Mautner Himmelblau
https://en.wikipedia.org/wiki/Himmelblau%27s_function

double Matyas(double x, double y)

Plate-shaped Matyas function. Global minimum of all zeros with f(0,0) = 0. Common range: [-10, 10].
http://www.sfu.ca/~ssurjano/matya.html

double Rastrigin(Double[] x)

Rastrigin, a highly multi-modal function with many local minima. Global minimum of all zeros with f(0) = 0. Common range: [-5.12,5.12].
https://en.wikipedia.org/wiki/Rastrigin_function http://www.sfu.ca/~ssurjano/rastr.html

double Rosenbrock(double x, double y)

Valley-shaped Rosenbrock function for 2 dimensions: (x,y) -> (1-x)^2 + 100*(y-x^2)^2. This function has a global minimum at (1,1) with f(1,1) = 0. Common range: [-5,10] or [-2.048,2.048].
https://en.wikipedia.org/wiki/Rosenbrock_function http://www.sfu.ca/~ssurjano/rosen.html

double Rosenbrock(Double[] x)

Valley-shaped Rosenbrock function for 2 or more dimensions. This function have a global minimum of all ones and, for 8 > N > 3, a local minimum at (-1,1,...,1).
https://en.wikipedia.org/wiki/Rosenbrock_function http://www.sfu.ca/~ssurjano/rosen.html

double SixHumpCamel(double x, double y)

Valley-shaped six-hump camel back function. Two global minima and four local minima. Global minima with f(x) ) -1.0316 at (0.0898,-0.7126) and (-0.0898,0.7126). Common range: x in [-3,3], y in [-2,2].
http://www.sfu.ca/~ssurjano/camel6.html