class_docstr: AbstractSolver base class for mystic optimizers.
      
class_docstr_tok: ["AbstractSolver","base","class","for","mystic","optimizers","."]
docstr: set the termination conditions
  
  input::
      - termination = termination conditions to check against
code: def SetTermination(self, termination):  # disp ?
      """set the termination conditions
  
      input::
          - termination = termination conditions to check against"""
      # XXX: validate that termination is a 'condition' ?
      self._termination = termination
      self._collapse = False
      if termination is not None:
          from mystic.termination import state
  
          stop = state(termination)
          stop = stop.keys()
          self._collapse = any(
              key.startswith("Collapse") for key in stop
          )
      return
  
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 31 for calling the AbstractSolver obj's underlying member method code with example usage: obj.SetTermination(termination) without return types