class_docstr: Powell Direction Search optimization,
  adapted from scipy.optimize.fmin_powell.
      
class_docstr_tok: ["Powell","Direction","Search","optimization",",","adapted","from","scipy.optimize.fmin_powell","."]
docstr: get the number of iterations
docstr_tok: ["get","the","number","of","iterations"]
code: def __generations(self):
      """get the number of iterations"""
      return max(0, len(self.energy_history) - 1)
  
imports: from mystic.tools import wrap_function, unpair, wrap_nested
  from mystic.tools import wrap_bounds, wrap_penalty, reduced
  import numpy
  from numpy import eye, zeros, shape, asarray, absolute, asfarray
  from numpy import clip, squeeze
  from mystic._scipy060optimize import brent
  from mystic.abstract_solver import AbstractSolver
label_desc: Use image node_id 2 for calling the PowellDirectionalSolver obj's underlying member method code with example usage: obj.__generations() and returns: max