schwefel: Schwefel function

Description Usage Arguments Details Value Examples

View source: R/schwefel.R

Description

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

Usage

1

Arguments

x

vector for calculating the schwefel function value.

Details

This function is complex with many local minima. The function presents a global minimum at x' = (420.9687,...,420.9687) and f(x')=0. Usually is evaluated on the hypercube denoted by: x_i in [-500,500].

Value

If x is a vector, returns the schwefel 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)
s <- schwefel(xx)

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