power-grid-model icon indicating copy to clipboard operation
power-grid-model copied to clipboard

[FEATURE] threading for multiple models, instead of one model with multiple update_data

Open leiwu84 opened this issue 2 years ago • 0 comments

My use case usually requires say 100 models, i.e. 100 instances of PowerGridModel. At this moment, its batch calculation feature only allows one model with many different update_data. I would suggest allowing batch calculation for many models. Then I can use multiple threads to run power flow for all the models in parallel. For example, I can run all 100 power-flows in one round if I have 100 threads, or five rounds with 20 threads, and so on.

leiwu84 avatar May 10 '23 12:05 leiwu84