Test Functions for Unconstrained Global Optimization |
Sphere Function
r Number of variables: n variables. r Definition:
r Search domain: −5.12 ≤ xi ≤ 5.12, i = 1, 2, . . . , n. r Number of local minima: no local minimum except the global one. r The global minima: x* = (0, …, 0), f(x*) = 0. r MATLAB Code: download sphere.m r Function graph: for n = 2. |