Optimization bug fixes in handling bounds and iterations.
Optimization bug fixes in handling bounds and iterations.

LBFGSB method pics absurdly low number of iterations if maxiter is passed to be
None. Default is now set to 1e5.
Also, using LBFGSB method would fail if lower or upper bounds were None.



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

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