Re: Optimizing math functions

2009-05-31 Thread Beni Cherniavsky
On May 31, 12:41 pm, Beni Cherniavsky wrote: > > Take a look athttp://openopt.org(python-scikits-openopt on debian/ > ubuntu) - a lot of optimization engines under one interface, so you > can try different engines easily and without learning many interfaces. > Correction: don't use the debian pack

Re: Optimizing math functions

2009-05-31 Thread Beni Cherniavsky
On May 23, 4:22 pm, Esmail wrote: > > Is there some sort of simple Python module that would allow me to > evaluate this type of function? > > In this particular instance I am interested in the minimum of > >    x * sin(4*x) + 1.1 * sin(2*y), where x,y in range 0-10 > > though in other problems the

Re: Optimizing math functions

2009-05-26 Thread Robert Kern
On 2009-05-24 07:42, Esmail 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 ques

Re: Optimizing math functions

2009-05-25 Thread Esmail
Charlie wrote: It might work under Linux, however, it was developed under Windows and, to my knowledge, has never been tested on a Linux machine. Basic operation only depends on installations of matplotlib, numpy, and scipy. Those packages are all available on Linux. If you try it, I'd like t

Re: Optimizing math functions

2009-05-25 Thread Charlie
Esmail hotmail.com> writes: > > Charlie wrote: > > > > You might also look at: > > http://pyparasol.sourceforge.net/example_1.html > > Thanks for this lead, I had never heard of parasol before. Do you know > if this also works under Linux? The docs mention only the Windows platform, > but give

Re: Optimizing math functions

2009-05-25 Thread Lawrence D'Oliveiro
In message <0033dace$0$9725$c3e8...@news.astraweb.com>, Steven D'Aprano wrote: > Minimizing functions of two variables is difficult, as a general rule. > Nevertheless, there are tools for doing so. Check out SciPy. The name "Marquadt-Levenberg" comes to mind. As I recall, it involved finding ze

Re: Optimizing math functions

2009-05-24 Thread Esmail
John Machin wrote: 1. Will is also allow me to maximize a function (I only saw minimum)? To maximise f(x,y), minimise -f(x,y) Ooops .. yes of course! Thanks, Esmail -- http://mail.python.org/mailman/listinfo/python-list

Re: Optimizing math functions

2009-05-24 Thread John Machin
On May 24, 10:42 pm, Esmail 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 deep

Re: Optimizing math functions

2009-05-24 Thread Esmail
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

Re: Optimizing math functions

2009-05-24 Thread Esmail
Charlie wrote: You might also look at: http://pyparasol.sourceforge.net/example_1.html Thanks for this lead, I had never heard of parasol before. Do you know if this also works under Linux? The docs mention only the Windows platform, but given that this is Python perhaps it is save to assume t

Re: Optimizing math functions

2009-05-24 Thread Charlie
Steven D'Aprano REMOVE-THIS-cybersource.com.au> writes: > > On Sat, 23 May 2009 09:22:59 -0400, Esmail wrote: > > > Hello all, > > > > I would like to maximize or minimize a given math function over a > > specific set of values, in Python preferably. > ... > > What it apparently can't do is fo

Re: Optimizing math functions

2009-05-23 Thread Robert Kern
On 2009-05-23 08:22, Esmail wrote: Hello all, I would like to maximize or minimize a given math function over a specific set of values, in Python preferably. I was checking out Wolfram Alpha (http://www70.wolframalpha.com/) and it can do simple optimization problems in math, such as maximize 1

Re: Optimizing math functions

2009-05-23 Thread Esmail
Steven D'Aprano wrote: On Sat, 23 May 2009 09:22:59 -0400, Esmail wrote: Hello all, I would like to maximize or minimize a given math function over a specific set of values, in Python preferably. ... What it apparently can't do is for maximize (or minimize) functions that contain two variabl

Re: Optimizing math functions

2009-05-23 Thread Steven D'Aprano
On Sat, 23 May 2009 09:22:59 -0400, Esmail wrote: > Hello all, > > I would like to maximize or minimize a given math function over a > specific set of values, in Python preferably. ... > What it apparently can't do is for maximize (or minimize) functions that > contain two variables, x and y, or

Optimizing math functions

2009-05-23 Thread Esmail
Hello all, I would like to maximize or minimize a given math function over a specific set of values, in Python preferably. I was checking out Wolfram Alpha (http://www70.wolframalpha.com/) and it can do simple optimization problems in math, such as maximize 15*x - x**2 over 0 to 15 (ht