class_docstr: AbstractSolver base class for mystic optimizers.
      
class_docstr_tok: ["AbstractSolver","base","class","for","mystic","optimizers","."]
docstr: set frequency for saving solver restart file
  
  input::
      - generations = number of solver iterations before next save of state
      - filename = name of file in which to save solver state
  
  note::
      SetSaveFrequency(None) will disable saving solver restart file
code: def SetSaveFrequency(self, generations=None, filename=None):
      """set frequency for saving solver restart file
  
      input::
          - generations = number of solver iterations before next save of state
          - filename = name of file in which to save solver state
  
      note::
          SetSaveFrequency(None) will disable saving solver restart file
      """
      self._saveiter = generations
      # self._saveeval = evaluations
      self._state = filename
      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 27 for calling the AbstractSolver obj's underlying member method code with example usage: obj.SetSaveFrequency(generations, filename) without return types