(self)
return not self._wrapper_args['exclude_gradient']
Returns if the optimizer is a gradient-based algorithm or not.
Returns if the optimizer is a gradient-based algorithm or not.
Returns if the optimizer is a gradient - based algorithm or not .
def gradient_enabled(self):
        """
        Returns if the optimizer is a gradient-based algorithm or not.
        """
        return not self._wrapper_args['exclude_gradient']
def gradient_enabled ( self ) : return not self . _wrapper_args [ 'exclude_gradient' ]