It would be nice if the optimizer instances provided __getstate__ and __setstate__ methods so that they could be pickled and passed to deepcopy. In particular, the pickle protocol is used by things like multiprocessing and mpi4py for inter-process communication.
I think it should be technically possible, but will be tricky because the nlopt_opt_s structure is full of pointers and was not designed to be serialized easily.
It would be nice if the optimizer instances provided
__getstate__
and__setstate__
methods so that they could be pickled and passed to deepcopy. In particular, the pickle protocol is used by things likemultiprocessing
andmpi4py
for inter-process communication.