docstr: Generate score for optimizer's performance on objective function
  
  Parameters
  ----------
  
  options: dict
      a dict with the following keys: {'c1', 'c2', 'w', 'k', 'p'}
docstr_tok: ["Generate","score","for","optimizer","'s","performance","on","objective","function","Parameters","--","--","--","--","--","options",":","dict","a","dict","with","the","following","keys",":","{","'c1","'",",","'c2","'",",","'","w","'",",","'","k","'",",","'","p","'","}"]
code: def generate_score(self, options):
      """Generate score for optimizer's performance on objective function
  
      Parameters
      ----------
  
      options: dict
          a dict with the following keys: {'c1', 'c2', 'w', 'k', 'p'}
      """
  
      # Intialize optimizer
      f = self.optimizer(
          self.n_particles,
          self.dims,
          options,
          self.bounds,
          velocity_clamp=self.vclamp,
      )
  
      # Return score
      return f.optimize(self.objective_func, self.iters)[0]
  
file_path: pyswarms/pyswarms/utils/search/base_search.py
imports: from __future__ import absolute_import, print_function, with_statement
  import operator
label_desc: Use image node_id 3 for calling the SearchBase obj's underlying member method code with example usage: obj.generate_score(options) and returns: f