class_docstr: AbstractSolver base class for mystic optimizers.
      
class_docstr_tok: ["AbstractSolver","base","class","for","mystic","optimizers","."]
docstr: Run the optimizer to termination, using the given settings.
  
  Args:
      cost (func): the function to be minimized: ``y = cost(x)``.
      ExtraArgs (tuple): tuple of extra arguments for ``cost``.
      settings (dict): optimizer settings (produced by ``_process_inputs``)
  
  Returns:
      None
          
code: def _Solve(self, cost, ExtraArgs, **settings):
      """Run the optimizer to termination, using the given settings.
  
      Args:
          cost (func): the function to be minimized: ``y = cost(x)``.
          ExtraArgs (tuple): tuple of extra arguments for ``cost``.
          settings (dict): optimizer settings (produced by ``_process_inputs``)
  
      Returns:
          None
      """
      disp = settings["disp"] if "disp" in settings else False
  
      # the main optimization loop
      stop = False
      while not stop:
          stop = self.Step(
              **settings
          )  # XXX: remove need to pass settings?
          continue
  
      # if collapse, then activate any relevant collapses and continue
      self.__stop__ = stop  # HACK: avoid re-evaluation of Termination
      while self._collapse and self.Collapse(disp=disp):
          del self.__stop__  # HACK
          stop = False
          while not stop:
              stop = self.Step(
                  **settings
              )  # XXX: move Collapse inside of Step?
              continue
          self.__stop__ = stop  # HACK
      del self.__stop__  # HACK
      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 48 for calling the AbstractSolver obj's underlying member method code with example usage: obj._Solve(cost, ExtraArgs) without return types