BUG: warn that bounded method in minimize_scalar does no support relative tolerance

Only issue the warning if the tol parameter is given.
Merge pull request #2917 from dlax/minimize_scalar-tol

BUG: optimize: warn that bounded method in minimize_scalar does no support relative tolerance