Possibility of reducing memory usage EnsembleProblem

I was wondering if it is possible to reduce the memory usage of an EnsembleProblem for large numbers of trajectories, for instance by saving to a file between batches. I’m currently running into the issue of being limited by memory in part due to having a large problem, and the possibility to reduce memory usage seems like it would help drastically. The reduction function seems to be related, but I would rather not truncate my data and save it to file instead. If there are other possibilities, I would also love to hear it.

What my solver looks like:
@time ensemble_jsol = solve(ensemble_jprob, SSAStepper(), EnsembleSerial(), trajectories=10)

That’s exactly what the reduction function is for. Use it to save the batch to a file.

1 Like