octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8918] fgridsearch as a gridsearch alterna


From: Max Görner
Subject: [Octave-patch-tracker] [patch #8918] fgridsearch as a gridsearch alternative to fminsearch
Date: Tue, 31 May 2016 09:57:20 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Follow-up Comment #3, patch #8918 (project octave):

I improved the documentation a tiny bit. Most importantly, I added another
example which demonstrates more clearly why I consider fgridsearch to be
beneficial. I'll copy the example here for convenience:

++
%Here fgridsearch is used to explore several starting points for a
%fminsearch optimisation. That way the global minimum is found.
fh = @(x) -10*exp(-(sumsq(x - [-100 -100]))) - 3*exp(-sumsq(x));
gh = @(x) nthargout(2, @fminsearch, fh, x);
range = linspace(-200, 200, 10);
[params, fval] = fgridsearch(gh, range, range);
--

I have to admit that this function only helps to hide loops, though.

If the new example makes the function interesting, I'll happily work on the
other points.

(file #37315)
    _______________________________________________________

Additional Item Attachment:

File name: fgridsearch.m                  Size:3 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8918>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]