[SciPy-User] maximization functions

Robert Kern robert.kern@gmail....
Thu Oct 22 14:33:48 CDT 2009

On Thu, Oct 22, 2009 at 14:07, Dennis C <dcswest@gmail.com> wrote:
> Greetings;
> Although I've been using numpy on a limited basis for a while now, just
> recently came across scipy in a search for any "more standardized" python
> optimization functions such as parabolic interpolation and a genetic
> algorithm that might just work more reliably than what I've written up thus
> far for either and seems like all I've found is the inverse of the former
> and future plans for the latter, so basically am wondering if there's
> already any maximization functions too in scipy as there seem to be
> minimization ones?

To convert a maximization problem to a minimization problem:

def func_to_minimize(x):
    return -func_to_maximize(x)

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the SciPy-User mailing list