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.
1 parent f6d6931 commit c3573a7Copy full SHA for c3573a7
pymoo/model/problem.py
@@ -459,7 +459,12 @@ def calc_constraint_violation(G):
459
460
def __getstate__(self):
461
state = self.__dict__.copy()
462
- state["parallelization"] = None
+
463
+ # If the parallelization is starmap,
464
+ # we can't pickle self with the starmapper function.
465
+ if state.get("parallelization", [None])[0] == "starmap":
466
+ state["parallelization"] = None
467
468
return state
469
470
# makes all the output at least 2-d dimensional
0 commit comments