luca-scr / GA

An R package for optimization using genetic algorithms
http://luca-scr.github.io/GA/
91 stars 29 forks source link

Log messages in parallel mode #32

Closed tamas-ferenci closed 4 years ago

tamas-ferenci commented 5 years ago

When using parallel=TRUE, absolutely no information is returned on the console from the fitness function itself. Is it somehow possible to save the messages of the function? I was thinking of something like the outfile option of the makeCluster, but unfortunately I can not set it from the outside in GA (if I understand everything correctly).

luca-scr commented 5 years ago

Have you tried to create a cluster "from scratch" with makeCluster() with outfile set and provide the cluster to the parallel argument of ga()? Please see an example of setting a cluster at http://luca-scr.github.io/GA/articles/GA.html#parallel-computing