Learn R Programming

DiceOptim (version 2.1.1)

branin2: 2D test function

Description

Branin 2-dimensional test function (standardized version).

Usage

branin2(x)

Arguments

x

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

Value

A real number equal to the branin2 function values at x

Details

The branin2 (standardized version) function is defined over the domain [0,1]^2. It has 3 global minimizers : x*,1 = c(0.1239, 0.8183), x*,2 = c(0.5428, 0.1517), x*.3 = c(0.9617, 0.1650), with minimum f(x*,i) = -1.047410

Examples

Run this code
# NOT RUN {
 
design <- matrix(runif(200), 200, 2)
response <- apply(design, 1, branin2)

# }

Run the code above in your browser using DataLab