We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f73e33 + 111a4ab commit 7397198Copy full SHA for 7397198
pymoo/model/problem.py
@@ -50,6 +50,7 @@ def __init__(self,
50
elementwise_evaluation : bool
51
52
parallelization : str or tuple
53
+ See :ref:`nb_parallelization` for guidance on parallelization.
54
55
"""
56
@@ -460,7 +461,12 @@ def calc_constraint_violation(G):
460
461
462
def __getstate__(self):
463
state = self.__dict__.copy()
- state["parallelization"] = None
464
+
465
+ # If the parallelization is starmap,
466
+ # we can't pickle self with the starmapper function.
467
+ if state["parallelization"] is not None and state["parallelization"][0] == "starmap":
468
+ state["parallelization"] = None
469
470
return state
471
472
# makes all the output at least 2-d dimensional
0 commit comments