d-krupke / cpsat-primer

The CP-SAT Primer: Using and Understanding Google OR-Tools' CP-SAT Solver
https://d-krupke.github.io/cpsat-primer/
Creative Commons Attribution 4.0 International
387 stars 35 forks source link

Adding an example for using CP-SAT with multiprocessing #31

Closed d-krupke closed 5 months ago

d-krupke commented 5 months ago

CP-SAT can block an application during long optimization processes. This example uses multiprocessing to run CP-SAT in a separate process. It may not be the best solution but it works. If anyone has a better idea, please let me know.