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

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

[Octave-bug-tracker] [bug #50067] function: qp.m, incorrect vectors dime


From: nicodemus
Subject: [Octave-bug-tracker] [bug #50067] function: qp.m, incorrect vectors dimension
Date: Thu, 19 Jan 2017 07:57:20 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #2, bug #50067 (project octave):


H = eye(2);
A = [1 -1];
b = 0;
Ai = [-1 -1];
bi = [-1];
x0 = [-10;10];

[x,~,info] = qp (x0,2*H,0*x0,A,b,[],[],[],Ai,bi);


the code fails with the following error in 4.2.0:


error: glpk: A must be 1 by 3, not 1 by 2
error: called from
    glpk at line 506 column 5
    qp at line 382 column 27
    t1 at line 9 column 11


This script runs smoothly if the default qp.m shipped with 4.2.0 is edited to
match the previous version. That is to say changing in lines 376,377 n ->
n-n_eq.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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