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

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

[Octave-bug-tracker] [bug #41888] fminsearch: should pass additional arg


From: Hartmut
Subject: [Octave-bug-tracker] [bug #41888] fminsearch: should pass additional arguments to called function
Date: Fri, 15 Jul 2016 19:51:44 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #10, bug #41888 (project octave):

I have tested Markus' second patch from comment #9 with the current "stable"
branch from the octave repository (hg id 4c0f78b3c86f).

* With this patch applied, Octave runs the small demo script from my original
post just fine. So this patch fully solves original my issue.

* The second allowed Matlab syntax (see comment #7) also works fine with this
patch applied.

* To my astonishment, this patch even makes passing multiple parameters to the
called function possible, something like "fminsearch(@myfun, start, options,
par1, par2, par3)". This is also (legacy) valid Matlab syntax as can be seen
here: http://de.mathworks.com/matlabcentral/newsreader/view_thread/162350

* I have also done a "make check" and not had any other failing tests (except
for exptected fails, see bug #48514).

I would be very happy to see this patch in the upcoming Octave 4.2 release. It
would make a lot of our legacy Matlab code work out of the box.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41888>

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




reply via email to

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