Learn R Programming

DiceOptim (version 2.1.1)

hartman4: 4D test function

Description

Hartman 4-dimensional test function.

Usage

hartman4(x)

Arguments

x

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

Value

A real number equal to the hartman4 function values at x

Details

The hartman4 (standardized version) function is defined over the domain [0,1]^4. It has 1 global minimizer : x* = c(0.1873, 0.1906, 0.5566, 0.2647), with minimum f(x*) = -3.135474

Examples

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

# }

Run the code above in your browser using DataLab