argmin_testfunctionsFunction ackley
Source pub fn ackley<T>(param: &[T]) -> T
Expand description
Ackley test function
Defined as
f(x1,x2,…,xn)=−aexp(−bn1i=1∑nxi2)−exp(n1i=1∑ncos(cxi))+a+exp(1)
where xi∈[−32.768,32.768] and usually a=20, b=0.2 and c=2π.
The global minimum is at f(x1,x2,…,xn)=f(0,0,…,0)=0.