bugGNU Octave - Bugs: bug #38483, qp() fails with empty inequality...

 
 

bug #38483: qp() fails with empty inequality constraints

Submitted by:  None
Submitted on:  Thu 07 Mar 2013 07:35:45 PM UTC
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  forkandwait Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Wed 12 Dec 2018 12:07:46 AM UTC, comment #5: 

Fixed in this changeset (https://hg.savannah.gnu.org/hgweb/octave/rev/aaa23f9845dd).  This will be a part of the 5.0 release of Octave in early 2019.

Rik <rik5>
Project Administrator
Sun 20 Nov 2016 09:47:23 PM UTC, comment #4: 

This issue is still present in Octave 4.2.0.

(The test script from comment #3 still errors out.)

Hartmut <hardy>
Mon 28 Sep 2015 05:20:21 PM UTC, comment #3: 

I confirm that this issue is still relevant on the stable branch (I haven't tested on default).

See attached file for a simple demo.

(file #35006)

Julien Bect <jbect>
Thu 07 Mar 2013 07:47:20 PM UTC, comment #2: 

Alright... now without the markup that doesn't seem to work ...

 [x obj info lambda] = qp(lccon.x0,     
                             lccon.H, lccon.q,
                             lccon.A_eqm,   lccon.b_eqv,
                             lccon.lbvec,   lccon.ubvec,
                             [], [], [],                           
                             optstr);

Anonymous
Thu 07 Mar 2013 07:46:21 PM UTC, comment #1: 

The code I tried to post didn't seem to show up, so here is again, hopefully:

 [x obj info lambda] = qp(lccon.x0,
                             lccon.H, lccon.q,
                             lccon.A_eqm,   lccon.b_eqv,
                             lccon.lbvec,   lccon.ubvec,
                             [], [], [],
                             optstr);
+verbatim+

Anonymous
Thu 07 Mar 2013 07:35:45 PM UTC, original submission:  

I am running qp() with empty values for the inequality matrices, because I want placeholders in functions that call qp(). But it errors out, instead of inferring that it is the same as no matrices. 

Here is what I want to do (lccon is set elsewhere):

                             lccon.H, lccon.q,
                             lccon.A_eqm,   lccon.b_eqv,
                             lccon.lbvec,   lccon.ubvec,
                             [], [], [],
                             optstr);
+verbatim+

Here is what I have to do to make it work:

+verbatim+    [x obj info lambda] = qp(lccon.x0,
                             lccon.H, lccon.q,
                             lccon.A_eqm,   lccon.b_eqv,
                             lccon.lbvec,   lccon.ubvec,
                             optstr);
+verbatim+


Attached is a diff that fixes the issue, which I made from my local sources (the most recent windows 3.7.whatever build).  I haven't tested extensively, but it works so far.  The diff also has some extra diagnostics I put in while trying to fix the problem (I think dimension hints would be good throughout qp()).

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #35006:  demo_bug38483.m added by jbect (448B - text/x-objcsrc)
file #27573:  qp.diff added by None (1KiB - application/octet-stream)

 

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 hardy (Posted a comment)
  • -email is unavailable- added by jbect (Updated the item)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by jordigh (Updated the item)
  • -email is unavailable- added by None (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 project members can vote.

     

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-12 rik5 StatusPatch Submitted => Fixed
        Open/ClosedOpen => Closed
    2015-09-28 jbect Attached File- => Added demo_bug38483.m, #35006
    2013-10-28 mtmiller CategoryNone => Octave Function
    2013-03-07 jordigh StatusNone => Patch Submitted
    2013-03-07 None Attached File- => Added qp.diff, #27573

    Back to the top


    Powered by Savane 3.9