PparLapplyHet {xegaPopulation}R Documentation

uses parLapplyLB of library parallel for using workers on machines in a local network.

Description

uses parLapplyLB of library parallel for using workers on machines in a local network.

Usage

PparLapplyHet(pop, EvalGene, lF)

Arguments

pop

a population of genes.

EvalGene

the function for evaluating a gene.

lF

the local function factory which provides all functions needed in EvalGene.

Value

Fitness vector.

Warning

This section has not been properly tested. Random number generation? Examples?

See Also

Other Execution Model: MClapply(), MClapplyHet(), PparLapply(), futureLapply(), futureLapplyHet()

Examples

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)


[Package xegaPopulation version 1.0.0.7 Index]