def METHOD_NAME(self, bounds):
    for i in range(num_variables):
        self.position[i] = self.position[i] + self.velocity[i]
        # check and repair to satisfy the upper bounds
        if self.position[i] > bounds[i][1]:
            self.position[i] = bounds[i][1]
        # check and repair to satisfy the lower bounds
        if self.position[i] < bounds[i][0]:
            self.position[i] = bounds[i][0]