class_docstr: Price 2 objective function.
  
  This class defines the Price 2 [1]_ global optimization problem. This is a
  multimodal minimization problem defined as follows:
  
  .. math::
  
     f_{\text{Price02}}(x) = 1 + \sin^2(x_1) + \sin^2(x_2)
     - 0.1e^{(-x_1^2 - x_2^2)}
  
  
  with :math:`x_i \in [-10, 10]` for :math:`i = 1, 2`.
  
  *Global optimum*: :math:`f(x) = 0.9` for :math:`x_i = [0, 0]`
  
  .. [1] Price, W. A controlled random search procedure for global
  optimisation Computer Journal, 1977, 20, 367-370
class_docstr_tok: ["Price","2","objective","function",".","This","class","defines","the","Price","2","[","1","]","_","global","optimization","problem",".","This","is","a","multimodal","minimization","problem","defined","as","follows",":","..","math",":",":","f_","{","\\text","{","Price02","}","}","(","x",")","=","1","+","\\sin^2","(","x_1",")","+","\\sin^2","(","x_2",")","-","0.1e^","{","(","-x_1^2","-","x_2^2",")","}","with",":","math",":","`","x_i","\\in","[","-10",",","10","]","`","for",":","math",":","`","i","=","1",",","2","`",".","*","Global","optimum","*",":",":","math",":","`","f","(","x",")","=","0.9","`","for",":","math",":","`","x_i","=","[","0",",","0","]","`","..","[","1","]","Price",",","W.","A","controlled","random","search","procedure","for","global","optimisation","Computer","Journal",",","1977",",","20",",","367-370"]
code: def fun(self, x, *args):
      self.nfev += 1
  
      return (
          1.0 + sum(sin(x) ** 2) - 0.1 * exp(-x[0] ** 2.0 - x[1] ** 2.0)
      )
  
imports: from numpy import abs, sum, sin, cos, sqrt, log, prod, where, pi, exp, arange, floor, log10, atleast_2d, zeros
  from .go_benchmark import Benchmark
label_desc: Use image node_id 2 for calling the Price02 obj's underlying member method code with example usage: obj.fun(x) and returns: unknown