class_docstr: Leon objective function.
  
  This class defines the Leon [1]_ global optimization problem. This
  is a multimodal minimization problem defined as follows:
  
  .. math::
  
      f_{\text{Leon}}(\mathbf{x}) = \left(1 - x_{1}\right)^{2} 
      + 100 \left(x_{2} - x_{1}^{2} \right)^{2}
  
  
  with :math:`x_i \in [-1.2, 1.2]` for :math:`i = 1, 2`.
  
  *Global optimum*: :math:`f(x) = 0` for :math:`x = [1, 1]`
  
  .. [1] Jamil, M. & Yang, X.-S. A Literature Survey of Benchmark Functions
  For Global Optimization Problems Int. Journal of Mathematical Modelling
  and Numerical Optimisation, 2013, 4, 150-194.
class_docstr_tok: ["Leon","objective","function",".","This","class","defines","the","Leon","[","1","]","_","global","optimization","problem",".","This","is","a","multimodal","minimization","problem","defined","as","follows",":","..","math",":",":","f_","{","\\text","{","Leon","}","}","(","\\mathbf","{","x","}",")","=","\\left","(","1","-","x_","{","1","}","\\right",")","^","{","2","}","+","100","\\left","(","x_","{","2","}","-","x_","{","1","}","^","{","2","}","\\right",")","^","{","2","}","with",":","math",":","`","x_i","\\in","[","-1.2",",","1.2","]","`","for",":","math",":","`","i","=","1",",","2","`",".","*","Global","optimum","*",":",":","math",":","`","f","(","x",")","=","0","`","for",":","math",":","`","x","=","[","1",",","1","]","`","..","[","1","]","Jamil",",","M.","&","Yang",",","X.-S.","A","Literature","Survey","of","Benchmark","Functions","For","Global","Optimization","Problems","Int",".","Journal","of","Mathematical","Modelling","and","Numerical","Optimisation",",","2013",",","4",",","150-194","."]
code: def __init__(self, dimensions=2):
      Benchmark.__init__(self, dimensions)
  
      self._bounds = list(zip([-1.2] * self.N, [1.2] * self.N))
  
      self.global_optimum = [[1 for _ in range(self.N)]]
      self.fglob = 0.0
  
imports: from numpy import sum, cos, exp, pi, arange, sin
  from .go_benchmark import Benchmark
label_desc: Use image node_id 1 to create a new Leon object from inherited base classes: Benchmark with example: obj = Leon(dimensions)