Setup a cluster for LandMine optimization

landmine_optim_clusterSetup(nodes = NULL, seed = NULL)

Arguments

nodes

positive integer of length 1 specifying the number of threads to use on the current machine (localhost), or a character vector of hostnames on which to run worker copies.

seed

Optional integer passed to parallel::clusterSetRNGStream(), so the per-worker RNG streams are reproducible. Without it the seed is drawn from ambient RNG state, which made calibration runs irreproducible unless the caller happened to call set.seed() first. Note reproducibility also requires a fixed worker count, since one stream is assigned per worker.

Value

a cluster object