powered by
Shifted Sphere Test Function with optimum at x_opt = a and f(x_opt) = 0
funShiftedSphere(x, a = 1)
matrix of points to evaluate with the function. Rows for points and columns for dimension.
offset added, i.e., f = sum (x-a)^2. Default: 1.
1
1-column matrix with resulting function values
funSphere
# NOT RUN { x1 <- matrix(c(-pi, 12.275),1,) a <- 1 funShiftedSphere(x1, a) # }
Run the code above in your browser using DataLab