class_docstr: AbstractSolver base class for mystic optimizers.
      
class_docstr_tok: ["AbstractSolver","base","class","for","mystic","optimizers","."]
docstr: return a deep copy of the solver
code: def __deepcopy__(self, memo):
      """return a deep copy of the solver"""
      import copy
      import dill
  
      cls = self.__class__
      result = cls.__new__(cls)
      memo[id(self)] = result
      for k, v in self.__dict__.items():
          if v is self._cost:
              setattr(result, k, tuple(dill.copy(i) for i in v))
          else:
              try:  # XXX: work-around instancemethods in python2.6
                  setattr(result, k, copy.deepcopy(v, memo))
              except TypeError:
                  setattr(result, k, dill.copy(v))
      return result
  
imports: import random
  import numpy
  from numpy import inf, shape, asarray, absolute, asfarray, seterr
  from mystic.tools import wrap_function, wrap_nested, wrap_reducer
  from mystic.tools import wrap_bounds, wrap_penalty, reduced
  from klepto import isvalid, validate
  from collections.abc import Callable
label_desc: Use image node_id 51 for calling the AbstractSolver obj's underlying member method code with example usage: obj.__deepcopy__(memo) and returns: result