designRandom: Random Design

Description Usage Arguments Value See Also Examples

View source: R/DoE.R

Description

Create a random initial population or experimental design, given a specifed creation function, as well as a optional set of user-specified design members and a maximum design size. Also removes duplicates from the design/population.

Usage

1
designRandom(x = NULL, cf, size, control = list())

Arguments

x

Optional list of user specified solutions to be added to the design, defaults to NULL

cf

Creation function, creates random new individuals

size

size of the design

control

not used

Value

Returns list with experimental design without duplicates

See Also

optimRS, designMaxMinDist

Examples

1
2
3
4
# Create a design of 10 permutations, each with 5 elements
design <- designRandom(NULL,function()sample(5),10)
# Create a design of 20 real valued 2d vectors
design <- designRandom(NULL,function()runif(2),20)

CEGO documentation built on May 14, 2021, 1:08 a.m.