Learn R Programming

SPOT (version 2.11.10)

funShiftedSphere: funShiftedSphere (No. 4)

Description

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

Usage

funShiftedSphere(x, a = 1)

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. Default: 1.

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