misc/spack · branch/default · fluiddyn / fluiddyn · GitLab

FluidDyn is a framework for studying fluid dynamics using Python.

GitLab

Article: 10 times faster, running cases in parallel

In this article, we explore running optimization model cases in parallel. Specifically, we use the Python multiprocessing and mpi4py libraries to fully use the many CPU cores/threads in modern computers.

Our goals are to:
- Illustrate how to apply the multiprocessing and mpi4py libraries to running optimization model cases in parallel.
- Measure the performance of running cases in parallel compared with serially.
- Compare the performance of an old 4 core / 4 thread CPU with a new 20 core / 28 thread CPU, using the HiGHS solver.

https://www.solvermax.com/blog/10-times-faster-running-cases-in-parallel
#Python #pyomo #orms #optimization #modelling #HiGHS #multiprocessing #mpi4py

Solver Max - 10 times faster, running cases in parallel

We convert a model to run scenarios in parallel, using the multiprocessing Python library. The scenarios run 10 times faster.