[SciPy-user] fminbound vs. brent
Mon Dec 1 06:29:11 CST 2008
On Mon, Dec 1, 2008 at 2:01 AM, Gideon Simpson <email@example.com> wrote:
> Based on the documentation, I'm a bit unclear on how fminbound and
> brent, as optimization algorithms, differ. Could someone clarify this
> for me?
brent doesn't do constrained optimisation, while fminbound does.
In : import scipy.optimize as opt
In : f = lambda x: x*x
In : opt.brent(f, brack=(3, 4))
In : opt.fminbound(f, x1=3, x2=4)
Hope that helps.
More information about the SciPy-user