Part of a set of benchmark functions for global optimisation
f(x1,x2)=- SUM(i=1,2)( SUM(k=0,20)(ak cos( 2 π bk (x1 + 0.5) ) ) - 2 * SUM(k=0,20)( ak cos( π bk) ) )
with a=0.5 and b=3
The Weierstrass function is highly rugged and moderately repetitive. It has several global minima (but only one in the domain considered here). The function has a near-fractal structure. Weierstrass developed this function and it was the first function shown to be continuous everywhere and differentiable nowhere. This function is a good test for rugged and repetitive landscapes. Since it is non-differentiable, it cannot be used with gradient-based algorithms.
Defined in: Mishra, S.K. (2006) Some new test functions for global optimization and performance of repulsive particle swarm method. Munich Personal RePEc Archive paper 2718 (http://mpra.ub.uni-muenchen.de/2718/).
CC0 1.0 Universal: To the extent possible under law, all copyright and related or neighbouring rights to this encoded model have been dedicated to the public domain worldwide. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. Please refer to CC0 Public Domain Dedication for more information.