griewank: Griewank function

Description Usage Arguments Details Value Examples

View source: R/griewank.R

Description

This function is a classic benchmark function for testing optimization algorithms.

Usage

1

Arguments

x

vector for calculating the Griewank function value.

Details

Complex function with many local minima, which are regularly distributed. Usually evaluated with x_i in [-600,600] for each i. Global minimum f(x')=0 in x'=(0,...,0).

Value

If x is a vector, returns the Griewank function value corrisponding to this vector. If is a matrix, returns the value of the function applied on each row vector.

Examples

1
2
3
##INPUT:
xx = runif(3)
g <- griewank(xx)

FilippoPic/DEoptimPIC documentation built on Feb. 14, 2022, 5:12 a.m.