Fix and enhancement of optimize_grid.
Fix and enhancement of optimize_grid.

In response to Xueqiu,
1) Set finish=False. By default, scipy.optimize.brute calls fmin after grid search, which this disables.
2) If full_output=True, also return array of thetas.



git-svn-id: 4c7b13231a96299fde701bb5dec4bd2aaf383fc6@467 979d6bd5-6d4d-0410-bece-f567c23bd345

cheese1213/dadi,yangjl/dadi,ChenHsiang/dadi,cheese1213/dadi,paulirish/dadi,beni55/dadi,RyanGutenkunst/dadi,RyanGutenkunst/dadi,beni55/dadi,niuhuifei/dadi,niuhuifei/dadi,yangjl/dadi,paulirish/dadi,ChenHsiang/dadi