public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* nmsimplex2
@ 2009-08-06 13:58 Tuomo Keskitalo
  2009-08-07  9:18 ` nmsimplex2 Brian Gough
  0 siblings, 1 reply; 4+ messages in thread
From: Tuomo Keskitalo @ 2009-08-06 13:58 UTC (permalink / raw)
  To: GSL Discuss Mailing List

Hi,

a faster simplex mininimser gsl_multimin_fminimizer_nmsimplex2 (which is 
O(N) instead of O(N^2), according to NEWS) was added to GSL-1.12. Is 
there any reference or more information about this algorithm (besides 
the source code)?

-- 
Tuomo.Keskitalo@iki.fi
http://iki.fi/tuomo.keskitalo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nmsimplex2
  2009-08-06 13:58 nmsimplex2 Tuomo Keskitalo
@ 2009-08-07  9:18 ` Brian Gough
  2009-08-07 13:42   ` nmsimplex2 Tuomo Keskitalo
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Gough @ 2009-08-07  9:18 UTC (permalink / raw)
  To: Tuomo Keskitalo; +Cc: GSL Discuss Mailing List

At Thu, 06 Aug 2009 16:58:13 +0300,
Tuomo Keskitalo wrote:
> a faster simplex mininimser gsl_multimin_fminimizer_nmsimplex2 (which is 
> O(N) instead of O(N^2), according to NEWS) was added to GSL-1.12. Is 
> there any reference or more information about this algorithm (besides 
> the source code)?

It's the same algorithm but the implementation removes some
unnecessary computation.  The centre and size are updated from the
change in the selected vertex rather than recomputed from scratch.
Otherwise, the results should be identical.

There was a bug that was fixed a few days which did cause some
differences, but I think it should be ok now.

-- 
Brian Gough

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nmsimplex2
  2009-08-07  9:18 ` nmsimplex2 Brian Gough
@ 2009-08-07 13:42   ` Tuomo Keskitalo
  2009-08-13 18:38     ` nmsimplex2 Brian Gough
  0 siblings, 1 reply; 4+ messages in thread
From: Tuomo Keskitalo @ 2009-08-07 13:42 UTC (permalink / raw)
  To: Brian Gough; +Cc: GSL Discuss Mailing List

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

On 08/07/2009 12:18 PM, Brian Gough wrote:

> It's the same algorithm but the implementation removes some
> unnecessary computation.  The centre and size are updated from the
> change in the selected vertex rather than recomputed from scratch.
> Otherwise, the results should be identical.

Ok. I misunderstood the explanation in the manual to mean that 
nmsimplex2 would somehow need fewer optimisation steps. Perhaps the 
attached patch makes it clear? The patch was generated with command
git format-patch origin..master

-- 
Tuomo.Keskitalo@iki.fi
http://iki.fi/tuomo.keskitalo

[-- Attachment #2: 0001-Clarification-of-nmsimplex2-added-to-documentation.patch --]
[-- Type: text/x-patch, Size: 1059 bytes --]

From 19d9b6b429e1bf46596b42829184f5c4cfa6391d Mon Sep 17 00:00:00 2001
From: Tuomo Keskitalo <tkeskita@pulmunen.(none)>
Date: Fri, 7 Aug 2009 16:20:56 +0300
Subject: [PATCH] Clarification of nmsimplex2 added to documentation

---
 doc/multimin.texi |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/doc/multimin.texi b/doc/multimin.texi
index cc2c607..c1e24ed 100644
--- a/doc/multimin.texi
+++ b/doc/multimin.texi
@@ -484,7 +484,9 @@ function @code{gsl_multimin_fminimizer_size}.
 
 The @code{nmsimplex2} version of this minimiser is a new @math{O(N)}
 implementation of the earlier @math{O(N^2)} @code{nmsimplex}
-minimiser.  It calculates the size of simplex as the @sc{rms} distance
+minimiser. The minimisation algorithm is the same, but the improved
+code makes @code{nmsimplex2} more efficient for large dimension
+problems. It calculates the size of simplex as the @sc{rms} distance
 of each vertex from the center rather than the mean distance, which
 has the advantage of allowing a linear update.
 @end deffn
-- 
1.5.6.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nmsimplex2
  2009-08-07 13:42   ` nmsimplex2 Tuomo Keskitalo
@ 2009-08-13 18:38     ` Brian Gough
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Gough @ 2009-08-13 18:38 UTC (permalink / raw)
  To: Tuomo Keskitalo; +Cc: GSL Discuss Mailing List

At Fri, 07 Aug 2009 16:41:55 +0300,
Tuomo Keskitalo wrote:
> Ok. I misunderstood the explanation in the manual to mean that 
> nmsimplex2 would somehow need fewer optimisation steps. Perhaps the 
> attached patch makes it clear? The patch was generated with command
> git format-patch origin..master

Thanks, I will change the wording to something like that.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-13 18:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-06 13:58 nmsimplex2 Tuomo Keskitalo
2009-08-07  9:18 ` nmsimplex2 Brian Gough
2009-08-07 13:42   ` nmsimplex2 Tuomo Keskitalo
2009-08-13 18:38     ` nmsimplex2 Brian Gough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).