'Does the new candidate vector lie inbetween the bounds?
Returns
accept_test : bool
The candidate vector lies inbetween the bounds'

def accept_test(self, x_new=None, *args, **kwargs):

    if (not hasattr(self.function, 'xmin')):
        return True
    if np.any((x_new < self.function.xmin)):
        return False
    if np.any((x_new > self.function.xmax)):
        return False
    return True
