Optimizing math functions

John Machin sjmachin at lexicon.net
Sun May 24 15:52:10 CEST 2009


On May 24, 10:42 pm, Esmail <ebo... at hotmail.com> wrote:
> Robert Kern wrote:
>
> > We have several bounded optimization routines in scipy.
>
> >http://docs.scipy.org/doc/scipy/reference/optimize.html
>
> Hi Robert,
>
> Thanks for the lead .. I briefly looked at the documentation, but
> before I dig into this more deeply 2 quick questions:
>
> 1. Will is also allow me to maximize a function (I only saw minimum)?

To maximise f(x,y), minimise -f(x,y)

HTH,
John



More information about the Python-list mailing list