Learn R Programming

SPOT (version 2.5.18)

funShiftedSphere: funShiftedSphere

Description

Shifted Sphere Test Function with optimum at x_opt = a and f(x_opt) = 0

Usage

funShiftedSphere(x, a)

Arguments

x

matrix of points to evaluate with the function. Rows for points and columns for dimension.

a

offset added, i.e., f = sum (x-a)^2

Value

1-column matrix with resulting function values

See Also

funSphere

Examples

Run this code
# NOT RUN {
x1 <- matrix(c(-pi, 12.275),1,)
a <- 1
funShiftedSphere(x1, a)

# }

Run the code above in your browser using DataLab