bugGNU Octave - Bugs: bug #29577, 'sqp' function returns an...

 
 

bug #29577: 'sqp' function returns an error-code which is not contemplated in the documentation

Submitted by:  Guido Walter Pettinari <coccoinomane>
Submitted on:  Fri 16 Apr 2010 04:56:10 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.2.3Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 23 Apr 2010 03:03:37 AM UTC, comment #1:

Thanks for noticing this.

I patched the problem with your provided solution in Mercurial changeset 83de7b060e91. You will need to build from source to see the fix or wait until the next release.

Rik <rik5>
Project Administrator
Fri 16 Apr 2010 04:56:10 PM UTC, original submission:

Hello world!

In my current project I extensively use the minimization function 'sqp', which is a wrapper to 'qp'. This function returns the error state of the minimizer in the output variable 'info'. According to the documentation, the possible values of 'info' are 101 (success), 102 (failure) and 103 (exceeded number of iterations).

However, I often get 'info = 0'. I checked the file 'sqp.m' and I found out that this is basically a sign of success (0 is the return value of 'qp' on success). 'sqp' simply misses a line to translate the info state from qp's zero to 101. I believe that the fix would be simply to include the line:
"""
info = 101
"""
just before the break statement in:
""""
if (t2 && t3 && max ([t0; t1; t4]) < tol)
break;
endif
"""

Cheers,

Guido

Guido Walter Pettinari <coccoinomane>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by coccoinomane (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 Apr 2010 03:03:37 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1