def function1(individual, position, height, width):
 value = 0.0
 for (x, p) in zip(individual, position):
  value += ((x - p) ** 2)
 return (height / (1 + (width * value)))

def function1 ( individual , position , height , width ) : value = 0.0 for ( x , p ) in zip ( individual , position ) : value += ( ( x - p ) ** 2 ) return ( height / ( 1 + ( width * value ) ) )
the function1 peak function to be used with scenario 1 .