Learn R Programming

DiceOptim (version 2.1.1)

sphere6: 6D sphere function

Description

6D Shifted and rotated weighted sphere test function.

Usage

sphere6(x)

Arguments

x

a 6-dimensional vector specifying the location where the function is to be evaluated.

Value

A real number equal to the sphere6 function values at x

Details

The 6D Shifted and rotated weighted sphere (standardized version) function is here defined over the domain [0,1]^6. It has 1 global minimizer : x* = c(1,0.8,0.6,0.4,0.2,0), ), with minimum f(x*) = -1.941389. It has no further local minima.

Examples

Run this code
# NOT RUN {
 
design <- matrix(runif(400), 100, 4)
response <- apply(design, 1, sphere6)

# }

Run the code above in your browser using DataLab