bugGNU Octave - Bugs: bug #55261, fminsearch displays incorrect sign...

 
 

bug #55261: fminsearch displays incorrect sign of obj function

Submitter:  Giovanni Ciriani <gciriani>
Submitted:  Fri 21 Dec 2018 02:43:39 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 21 Dec 2018 07:22:29 PM UTC, comment #1: 

Correct, the reporting of function values was always of the opposite sign to the true value.  I fixed that in a changeset here (https://hg.savannah.gnu.org/hgweb/octave/rev/da54f14258e1).  The change will be part of the 5.0 release scheduled for January, 2019.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Fri 21 Dec 2018 02:43:39 PM UTC, original submission:  

After activating the option optimset('Display', 'iter'), to visualize the intermediate steps of fminsearch, if the objective function is negative, the iteration step value f is shown as positive. See example
 [p, objf, cvg, outp] = fminsearch (@(x) -1+x^2, 3, optimset('Display', 'iter') )

Giovanni Ciriani <gciriani>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by gciriani (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-21 rik5 Item GroupNone Incorrect Result
        StatusNone Fixed
        Open/ClosedOpen Closed
        Release4.4.1 dev
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code