POV-Ray : Newsgroups : povray.general : How to find the maximum value of a function? : Re: How to find the maximum value of a function? Server Time
30 Jul 2024 16:17:33 EDT (-0400)
  Re: How to find the maximum value of a function?  
From: triple r
Date: 15 Nov 2008 12:35:00
Message: <web.491f07d7c0004fc9ef2b9ba40@news.povray.org>
"SharkD" <nomail@nomail> wrote:
> "triple_r" <nomail@nomail> wrote:
> > In general?  I would evaluate it on a sparse grid, then refine that guess with
> > something like Powell's method or conjugate gradient.
> >
> > Here?  The maximum is at (1,0,0), and happens to be equal to 34.5012.
> >
> >  - Ricky
>
> Thanks for your reply!
>
> The maximum in this particular case can't be 34.5012, as plugging <1,0,0,> into
> the function results in a value of 3.808.

Oops.  Sorry -- must have made a typo plugging it into the old calculator...
End of a long week...

> I was hoping for a general method that I could apply anywhere, but I see now
> that there could possibly be multiple maximums--or no maximum at all!--unless a
> strict range were also given. This is not an issue in this case, however, since
> the function is not continuous.

That's why, ultimately, a grid may be the best way to get an estimate, but good
luck either way.  Hopefully your skills with addition and subtraction are
better than mine...

 - Ricky


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.