I'm trying to use DEoptim
optimization package in R on a continuous optimization problem, and as my cost function takes a long time to evaluate (2min), I'm trying to use parallel computation. My questions are:
What's the difference between
paralleltype=1
(parallel
) and2
(foreach
) option ? When to use one of the two ?Is it possible to specify the number of cores with
paralleltype=1
, in order not to take all the available cores for computing (50 cores on 64 cores available, for instance)?