class_docstr: Mishra 8 objective function.
  
  This class defines the Mishra 8 [1]_ global optimization problem. This
  is a multimodal minimization problem defined as follows:
  
  .. math::
  
     f_{\text{Mishra08}}(x) = 0.001 \left[\lvert x_1^{10} - 20x_1^9
     + 180x_1^8 - 960 x_1^7 + 3360x_1^6 - 8064x_1^5 + 13340x_1^4 - 15360x_1^3
     + 11520x_1^2 - 5120x_1 + 2624 \rvert \lvert x_2^4 + 12x_2^3 + 54x_2^2
     + 108x_2 + 81 \rvert \right]^2
  
  
  with :math:`x_i \in [-10, 10]` for :math:`i = 1, 2`.
  
  *Global optimum*: :math:`f(x) = 0` for :math:`x = [2, -3]`
  
  .. [1] Mishra, S. Global Optimization by Differential Evolution and
  Particle Swarm Methods: Evaluation on Some Benchmark Functions.
  Munich Personal RePEc Archive, 2006, 1005
  
  TODO Line 1065
class_docstr_tok: ["Mishra","8","objective","function",".","This","class","defines","the","Mishra","8","[","1","]","_","global","optimization","problem",".","This","is","a","multimodal","minimization","problem","defined","as","follows",":","..","math",":",":","f_","{","\\text","{","Mishra08","}","}","(","x",")","=","0.001","\\left","[","\\lvert","x_1^","{","10","}","-","20x_1^9","+","180x_1^8","-","960","x_1^7","+","3360x_1^6","-","8064x_1^5","+","13340x_1^4","-","15360x_1^3","+","11520x_1^2","-","5120x_1","+","2624","\\rvert","\\lvert","x_2^4","+","12x_2^3","+","54x_2^2","+","108x_2","+","81","\\rvert","\\right","]","^2","with",":","math",":","`","x_i","\\in","[","-10",",","10","]","`","for",":","math",":","`","i","=","1",",","2","`",".","*","Global","optimum","*",":",":","math",":","`","f","(","x",")","=","0","`","for",":","math",":","`","x","=","[","2",",","-3","]","`","..","[","1","]","Mishra",",","S.","Global","Optimization","by","Differential","Evolution","and","Particle","Swarm","Methods",":","Evaluation","on","Some","Benchmark","Functions",".","Munich","Personal","RePEc","Archive",",","2006",",","1005","TODO","Line","1065"]
code: def fun(self, x, *args):
      self.nfev += 1
  
      val = abs(
          x[0] ** 10
          - 20 * x[0] ** 9
          + 180 * x[0] ** 8
          - 960 * x[0] ** 7
          + 3360 * x[0] ** 6
          - 8064 * x[0] ** 5
          + 13340 * x[0] ** 4
          - 15360 * x[0] ** 3
          + 11520 * x[0] ** 2
          - 5120 * x[0]
          + 2624
      )
      val += abs(
          x[1] ** 4 + 12 * x[1] ** 3 + 54 * x[1] ** 2 + 108 * x[1] + 81
      )
      return 0.001 * val**2
  
imports: from numpy import abs, asarray, cos, exp, log, arange, pi, prod, sin, sqrt, sum, tan
  from .go_benchmark import Benchmark, safe_import
label_desc: Use image node_id 2 for calling the Mishra08 obj's underlying member method code with example usage: obj.fun(x) and returns: unknown