ENH: optimize: choose method automatically in minimize

Make usage easier by choosing an appropriate solver.
Merge pull request #3133 from pv/minimize-method-auto

ENH: optimize: choose method automatically in minimize