PparLapplyHet | R Documentation |
uses parLapplyLB of library parallel for using workers on machines in a local network.
PparLapplyHet(pop, EvalGene, lF)
pop |
a population of genes. |
EvalGene |
the function for evaluating a gene. |
lF |
the local function factory which provides
all functions needed in |
Fitness vector.
This section has not been properly tested. Random number generation? Examples?
Other Execution Model:
MClapply()
,
MClapplyHet()
,
PparLapply()
,
futureLapply()
,
futureLapplyHet()
parm<-function(x) {function() {x}}
pop<-xegaInitPopulation(1000, lFxegaGaGene)
library(parallel)
clus<-makeCluster(2)
lFxegaGaGene$cluster<-parm(clus)
popnew<-PparLapplyHet(pop, lFxegaGaGene$EvalGene, lFxegaGaGene)
stopCluster(clus)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.