Plot vs NMaximize
- To: mathgroup at smc.vnet.net
- Subject: [mg94221] Plot vs NMaximize
- From: Nikolaus Rath <Nikolaus at rath.org>
- Date: Mon, 8 Dec 2008 06:22:32 -0500 (EST)
Hello,
It seems to me that it is significantly faster *and* more accurate to
determine global maxima by plotting the function and looking for the
positions on the plot than to use NMaximize: in all the cases that
I've encountered recently, NMaximize got stuck in local extrema (which
was very easy to see when looking at the plot).
I know that global optimization is a very difficult problem, but I do
not understand why Plot[] does not suffer from the same problem. If
Plot[] is able to generate a plot where I can see the position of the
global maximum in a second, why does NMaximize need several seconds to
get stuck in some local maxima? Shouldn't it be able to make use of
the same algorithms that Plot[] uses?
Best,
-Nikolaus
--
=C2=BBIt is not worth an intelligent man's time to be in the majority.
By definition, there are already enough people to do that.=C2=AB
-J.H. Hardy
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
- Follow-Ups:
- Re: Plot vs NMaximize
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: Plot vs NMaximize
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: Plot vs NMaximize
- From: Nikolaus Rath <Nikolaus@rath.org>
- Re: Plot vs NMaximize