Without setting a range is difficult for all kinds of optimization except the most trivial ones.
If you must, you can considering the following:
running a very coarse grid search
pick the best point, and do a fine optimization around that point using, e.g., Brent
Hope this helps.