Learn R Programming

MoBPS (version 1.13.1)

optimize.cores: Optimize generation cores

Description

Function to optimize the number of cores used in the generation of new individuals

Usage

optimize.cores(
  population = NULL,
  test.size = 2500,
  max.cores = 10,
  verbose = TRUE,
  plot = TRUE
)

Value

Population-list with one or more additional new traits

Arguments

population

Population list

test.size

Number of individuals to generate for each core number (default: 2500)

max.cores

Maximum number of cores to test (default: 10)

verbose

Set to FALSE to not display any prints

plot

Set to FALSE to not generate a plot of computing times per core

Examples

Run this code
population = optimize.cores(max.cores=1, test.size=500)

Run the code above in your browser using DataLab