camel6: Six-hump discrete test function

Description Usage Arguments Examples

View source: R/funcBank.R

Description

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

Usage

1
  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

1
2
3
4
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)

atmopt documentation built on May 2, 2019, 2:07 a.m.