#NEWLINE# def accept_test( self , x_new = None , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        Does the new candidate vector lie inbetween the bounds?\n\n        Returns\n        -------\n        accept_test : bool\n            The candidate vector lies inbetween the bounds\n        ' #NEWLINE# if ( not hasattr ( self . function , 'xmin' ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if np . any ( ( x_new < self . function . xmin ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if np . any ( ( x_new > self . function . xmax ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True