#NEWLINE# def evaluate( self , x ) : #NEWLINE# #INDENT# '\n        Wrapper function of the objective function that is used\n        inside the solver to evaluate x. It rescales x from [0,1]\n        to the original space and makes sure the x inside the\n        bounds.\n\n        Parameters\n        ----------\n        X: np.ndarray (1, D)\n            Data point where the objective function should\n            be evaluate.\n\n        Returns\n        ----------\n        np.ndarray (1, 1)\n            Function value of the objective function at x\n        ' #NEWLINE# assert ( len ( x . shape ) == 2 ) #NEWLINE# assert ( x . shape [ 1 ] == self . n_dims ) #NEWLINE# assert np . all ( ( self >= self . X_lower ) ) #NEWLINE# assert np . all ( ( x <= self . X_upper ) ) #NEWLINE# if self . do_scaling : #NEWLINE# #INDENT# x = self . retransform ( x ) #NEWLINE# #UNINDENT# return self . objective_function ( x )