def cone(individual, position, height, width):
 value = 0.0
 for (x, p) in zip(individual, position):
  value += ((x - p) ** 2)
 return (height - (width * math.sqrt(value)))

def cone ( individual , position , height , width ) : value = 0.0 for ( x , p ) in zip ( individual , position ) : value += ( ( x - p ) ** 2 ) return ( height - ( width * math . sqrt ( value ) ) )
the cone peak function to be used with scenario 2 and 3 .