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

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

[Octave-bug-tracker] [bug #38483] qp() fails with empty inequality const


From: anonymous
Subject: [Octave-bug-tracker] [bug #38483] qp() fails with empty inequality constraints
Date: Thu, 07 Mar 2013 19:35:47 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22

URL:
  <http://savannah.gnu.org/bugs/?38483>

                 Summary: qp() fails with empty inequality constraints
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 07 Mar 2013 07:35:45 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: forkandwait
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

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):

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


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

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



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()).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 07 Mar 2013 07:35:45 PM UTC  Name: qp.diff  Size: 1kB   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=27573>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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