class_docstr: AbstractMapSolver base class for mystic optimizers that utilize parallel map.
      
class_docstr_tok: ["AbstractMapSolver","base","class","for","mystic","optimizers","that","utilize","parallel","map","."]
docstr: Takes one initial input::
  
      dim      -- dimensionality of the problem.
  
  Additional inputs::
  
      npop     -- size of the trial solution population.       [default = 1]
  
  Important class members::
  
      nDim, nPop       = dim, npop
      generations      - an iteration counter.
      evaluations      - an evaluation counter.
      bestEnergy       - current best energy.
      bestSolution     - current best parameter set.           [size = dim]
      popEnergy        - set of all trial energy solutions.    [size = npop]
      population       - set of all trial parameter solutions. [size = dim*npop]
      solution_history - history of bestSolution status.       [StepMonitor.x]
      energy_history   - history of bestEnergy status.         [StepMonitor.y]
      signal_handler   - catches the interrupt signal.         [***disabled***]
          
docstr_tok: ["Takes","one","initial","input",":",":","dim","--","dimensionality","of","the","problem",".","Additional","inputs",":",":","npop","--","size","of","the","trial","solution","population",".","[","default","=","1","]","Important","class","members",":",":","nDim",",","nPop","=","dim",",","npop","generations","-","an","iteration","counter",".","evaluations","-","an","evaluation","counter",".","bestEnergy","-","current","best","energy",".","bestSolution","-","current","best","parameter","set",".","[","size","=","dim","]","popEnergy","-","set","of","all","trial","energy","solutions",".","[","size","=","npop","]","population","-","set","of","all","trial","parameter","solutions",".","[","size","=","dim","*","npop","]","solution_history","-","history","of","bestSolution","status",".","[","StepMonitor.x","]","energy_history","-","history","of","bestEnergy","status",".","[","StepMonitor.y","]","signal_handler","-","catches","the","interrupt","signal",".","[","*","*","*","disabled","*","*","*","]"]
code: def __init__(self, dim, **kwds):
      """
      Takes one initial input::
  
          dim      -- dimensionality of the problem.
  
      Additional inputs::
  
          npop     -- size of the trial solution population.       [default = 1]
  
      Important class members::
  
          nDim, nPop       = dim, npop
          generations      - an iteration counter.
          evaluations      - an evaluation counter.
          bestEnergy       - current best energy.
          bestSolution     - current best parameter set.           [size = dim]
          popEnergy        - set of all trial energy solutions.    [size = npop]
          population       - set of all trial parameter solutions. [size = dim*npop]
          solution_history - history of bestSolution status.       [StepMonitor.x]
          energy_history   - history of bestEnergy status.         [StepMonitor.y]
          signal_handler   - catches the interrupt signal.         [***disabled***]
      """
      super(AbstractMapSolver, self).__init__(dim, **kwds)
      # AbstractSolver.__init__(self,dim,**kwds)
      # self.signal_handler   = None
      # self._handle_sigint   = False
      trialPop = [[0.0 for i in range(dim)] for j in range(self.nPop)]
      self.trialSolution = trialPop
      self._map_solver = True
  
      # import 'map' defaults
      from mystic.python_map import python_map
  
      # map and kwds used for parallel and distributed computing
      self._map = python_map  # map
      self._mapconfig = dict()
      return
  
imports: from mystic.monitors import Null
  from mystic.abstract_solver import AbstractSolver
label_desc: Use image node_id 1 to create a new AbstractMapSolver object from inherited base classes: AbstractSolver with example: obj = AbstractMapSolver(dim)