Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Apr 11, 2024
1 parent 2107a54 commit f4c4c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jormungandr/optimization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import multiprocessing as mp
from multiprocessing.pool import ThreadPool

from .._jormungandr.optimization import *

Expand All @@ -19,7 +19,7 @@ def multistart(solve, initial_guesses):
Parameter ``initial_guesses``:
A list of decision variable initial guesses to try.
"""
with mp.Pool(len(initial_guesses)) as pool:
with ThreadPool(len(initial_guesses)) as pool:
results = pool.map(solve, initial_guesses)

# Prioritize successful solve, otherwise prioritize solution with lower cost
Expand Down

0 comments on commit f4c4c5a

Please sign in to comment.