Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


atmopt (version 0.1.0)

camel6: Six-hump discrete test function

Description

A discrete test function constructed from the six-hump camel function in Ali et al. (2005).

Usage

camel6(xx,ntimes,nlev)

Arguments

xx

A p-vector for input factors.

ntimes

Number of duplications for the function (base function is 2D).

nlev

A p-vector corresponding to the number of levels for each factor(discretized on equally-spaced intervals).

Examples

Run this code
# NOT RUN {
xx <- c(1,2,1,2,1,2) #input factors
nlev <- rep(4,length(xx)) #number of levels for each factor
ntimes <- length(xx)/2 #base function is in 2D, so duplicate 3 times
camel6(xx,ntimes,nlev)
# }

Run the code above in your browser using DataLab