camel6 {atmopt}R Documentation

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

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)

[Package atmopt version 0.1.0 Index]