class_docstr: a framework for benchmarking the optimizer
  
  Parameters
  ----------
  function_name : string
  fun : callable
  der : callable
      function that returns the derivative (jacobian, gradient) of fun
  hess : callable
      function that returns the hessian of fun
  minimizer_kwargs : kwargs
      additional keywords passed to the minimizer.  e.g. tol, maxiter
class_docstr_tok: ["a","framework","for","benchmarking","the","optimizer","Parameters","--","--","--","--","--","function_name",":","string","fun",":","callable","der",":","callable","function","that","returns","the","derivative","(","jacobian",",","gradient",")","of","fun","hess",":","callable","function","that","returns","the","hessian","of","fun","minimizer_kwargs",":","kwargs","additional","keywords","passed","to","the","minimizer",".","e.g",".","tol",",","maxiter"]
docstr: Run the optimization tests for the required minimizers.
docstr_tok: ["Run","the","optimization","tests","for","the","required","minimizers","."]
code: def bench_run_global(self, numtrials=50, methods=None):
      """
      Run the optimization tests for the required minimizers.
      """
  
      if methods is None:
          methods = ["DE", "basinh.", "DA", "DIRECT", "SHGO"]
  
      stochastic_methods = ["DE", "basinh.", "DA"]
  
      method_fun = {
          "DE": self.run_differentialevolution,
          "basinh.": self.run_basinhopping,
          "DA": self.run_dualannealing,
          "DIRECT": self.run_direct,
          "SHGO": self.run_shgo,
      }
  
      for m in methods:
          if m in stochastic_methods:
              for i in range(numtrials):
                  method_fun[m]()
          else:
              method_fun[m]()
  
imports: import os
  import time
  import inspect
  import json
  import traceback
  from collections import defaultdict
  import numpy
  from .None import test_functions
  from .None import go_benchmark_functions
  from .common import Benchmark, is_xslow, safe_import
  from .lsq_problems import extract_lsq_problems
label_desc: Use image node_id 14 for calling the _BenchOptimizers obj's underlying member method code with example usage: obj.bench_run_global(numtrials, methods) without return types