Closed romanovzky closed 6 months ago
Sorry, just realised that Problem
, instead of ElementWiseProblem
accepts a whole pop, so I can in principle parallelise inside the _evaluate
method. Is this correct?
yes exactly this is how pymoo is designed!
Please reopen if this does not resolve your issue.
Hi all,
I have a problem where in order to evaluate an individual I need to write a file to disk, execute a program, and read the file. In order to safely parallelise, I need to be able to write the files with distinct name for each pop individual, i.e. something like this
however, looking at all possible ways of running
pymoo
(minimize
, ask and tell, etc) I don't seem to have any way of having a (at least per generation) unique identifier of a candidate solution so thatfile_path
is unique and I don't have concurrency issues, and therefore can't parallelise my evaluate.Am I missing something? Cheers