[SciPy-User] maximization functions
Dennis C
dcswest@gmail....
Thu Oct 22 19:03:37 CDT 2009
Hello again Robert;
And thanks for that response! Hope it's not asking for too much "hand
holding," since I don't quite understand it yet, but would you maybe offer
an example of what and how exactly to call from scipy if I have a function
to MAXimize that takes one variable (direct parabolic interpolation)
say between 0 and 1 with a precision of 0.01 up to 100 iterations?
Thanks again,
Date: Thu, 22 Oct 2009 14:33:48 -0500
From: Robert Kern <robert.kern@gmail.com>
Subject: Re: [SciPy-User] maximization functions
To: SciPy Users List <scipy-user@scipy.org>
Message-ID:
<3d375d730910221233q57a1ee85r621fae1e53151c10@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20091022/199d82df/attachment.html
More information about the SciPy-User
mailing list