bugGNU Octave - Bugs: bug #46807, Additional arguments to fmin*

 
 

bug #46807: Additional arguments to fmin*

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Mon 04 Jan 2016 10:22:30 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Tue 05 Jan 2016 09:00:28 AM UTC, comment #7:

No probs. It's kind of an ugly hack too.

Ceral Paquet <octavebugs>
Mon 04 Jan 2016 10:08:07 PM UTC, comment #6:

I agree to jwe. Problem parameter passing is easily done using an anonymous function in both Octave and Matlab

See example 2+3 in the current Matlab documentation:

http://www.mathworks.com/help/matlab/ref/fminsearch.html

Kai Torben Ohlhus <siko1056>
Project Member
Mon 04 Jan 2016 07:14:00 PM UTC, comment #5:

We've already decided that we don't care to support this behavior since it is no longer documented Matlab behavior.

The documentation you point to appears to be quite old. It looks like someone put up an unauthorized copy of the Matlab docs on their own server and never removed it even thought appears to be at least a dozen years out of date. It mentions R13, which according to https://en.wikipedia.org/wiki/MATLAB#Release_history is about 13 years old now.

John W. Eaton <jwe>
Project Administrator
Mon 04 Jan 2016 02:43:11 PM UTC, comment #4:

Sorry for making a meal of this...! I just noticed fzero and fsolve need the same treatment.

(file #35920)

Ceral Paquet <octavebugs>
Mon 04 Jan 2016 01:57:55 PM UTC, comment #3:

OK well that one didn't work. Try again...

(file #35919)

Ceral Paquet <octavebugs>
Mon 04 Jan 2016 01:33:46 PM UTC, comment #2:

I don't trust my patch file skills... but here's my first effort.

(file #35918)

Ceral Paquet <octavebugs>
Mon 04 Jan 2016 10:47:14 AM UTC, comment #1:

Oops, his is a dupe of #41888 which looks like it is not happening. Apologies for the noise!

Ceral Paquet <octavebugs>
Mon 04 Jan 2016 10:22:30 AM UTC, original submission:

Matlab supports additional arguments in fminsearch, fmnbnd, fminunc, etc. that get passed to the function.

There is documentation here but not on the current Matlab website.

http://www-rohan.sdsu.edu/doc/matlab/techdoc/ref/fminsearch.html

Example:

Ceral Paquet <octavebugs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #35920:  fmin.patch added by octavebugs (8KiB - text/x-patch)
file #35919:  fmin.patch added by octavebugs (5KiB - text/x-patch)
file #35918:  fmin.patch added by octavebugs (5KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by siko1056 (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by octavebugs (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 05 Jan 2016 11:37:58 AM UTCsiko1056Open/ClosedOpen=>Closed
    Mon 04 Jan 2016 10:08:07 PM UTCsiko1056StatusNone=>Wont Fix
      Operating SystemGNU/Linux=>Any
    Mon 04 Jan 2016 02:43:11 PM UTCoctavebugsAttached File-=>Added fmin.patch, #35920
    Mon 04 Jan 2016 01:57:55 PM UTCoctavebugsAttached File-=>Added fmin.patch, #35919
    Mon 04 Jan 2016 01:33:46 PM UTCoctavebugsAttached File-=>Added fmin.patch, #35918

    Back to the top


    Powered by Savane 3.1-cleanup1