code: def cone(individual, position, height, width):
      r"""The cone peak function to be used with scenario 2 and 3.
  
      :math:`f(\mathbf{x}) = h - w \sqrt{\sum_{i=1}^N (x_i - p_i)^2}`
  
      """
      value = 0.0
      for x, p in zip(individual, position):
          value += (x - p) ** 2
      return height - width * math.sqrt(value)
  
file_path: deap/deap/benchmarks/movingpeaks.py
imports: import math
  import itertools
  import random
  from collections.abc import Sequence
label_desc: Use image node_id 1 for calling a global function with example usage: cone(individual, position, height, width) and returns: unknown