Description Usage Arguments Details Value Examples
This function is a classic benchmark function for testing optimization algorithms.
1 | sphere(x)
|
x |
vector for calculating the sphere function value. |
The function presents a global minimum at x' = (0,...,0) and f(x')=0. Usually is evaluated on the hypercube denoted by: x_i in [-5.12,5.12] for each i.
If x is a vector, returns the sphere function value corrisponding to this vector. If is a matrix, returns the value of the function applied on each row vector.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.