what about a function that does have peak on the boundary, for example calculating the expectation of a standard normal variable, the function doesn't converge with default..