pierucci / heemod

:chart_with_upwards_trend:Markov Models for Health Economic Evaluations
https://pierucci.org/heemod/
Other
41 stars 25 forks source link

How to run multiple strategies in parallel? #357

Closed BigweiYang closed 1 year ago

BigweiYang commented 1 year ago

When I run three strategies in run_model function, it always runs one by one. Because each strategy needs to run a long time. I want to know how to run all three strategies in parallel in the run_model function.

KZARCA commented 1 year ago

Hi, first of all, please use the latest version of heemod: devtools::install_github("aphp/heemod"). It should be much faster. Then you could use the "future" package.

BigweiYang commented 1 year ago

Thank you for your answer. Could you give a simple example of parallel computing using the "future" package?