bugGNU Octave - Bugs: bug #50067, function: qp.m, incorrect vectors...

 
 

bug #50067: function: qp.m, incorrect vectors dimension

Submitted by:  nicodemus <nicmus>
Submitted on:  Tue 17 Jan 2017 03:07:14 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Unexpected Error
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 08 Feb 2017 05:33:43 AM UTC, comment #3:

I think this was a copy/paste error or something trivial like that. I reverted the two lines in qp.m to match the script from Octave version 4.0.3 and this example works again. See http://hg.savannah.gnu.org/hgweb/octave/rev/c7fb1f95842e.

Fixed, closing report.

Rik <rik5>
Project Administrator
Thu 19 Jan 2017 07:57:20 AM UTC, comment #2:

the code fails with the following error in 4.2.0:

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.

nicodemus <nicmus>
Wed 18 Jan 2017 06:40:30 PM UTC, comment #1:

Could you post example code that works in 4.0.3 and fails in 4.2.0?

Rik <rik5>
Project Administrator
Tue 17 Jan 2017 03:07:14 PM UTC, original submission:

With the new release 4.2.0 the call to the function qp.m results in a crash for an infeasible initial guess x0.

The function that aborts the execution is glpk called at qp.m:380.

The problem seems to be due to bad dimension of vectors ctmp and lb.

Octave 4.2.0 on microsoft windows
------------------------------------
376: ctmp = [zeros(n, 1); ones(n_in, 1)];
377: lb = [-Inf(n,1); zeros(n_in,1)];

Octave 4.0.3 on linux
------------------------------------
376: ctmp = [zeros(n-n_eq, 1); ones(n_in, 1)];
377: lb = [-Inf(n-n_eq,1); zeros(n_in,1)];

The problem is solved by using the old version of qp.m

nicodemus <nicmus>

 

(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 jwe (Updated the item)
  • -unavailable- added by nicmus (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 08 Feb 2017 05:33:43 AM UTCrik5StatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
      Operating SystemMicrosoft Windows=>Any
    Wed 18 Jan 2017 06:40:30 PM UTCrik5StatusNone=>Need Info
    Tue 17 Jan 2017 03:16:29 PM UTCjweItem GroupSegfault, Bus Error, etc.=>Unexpected Error

    Back to the top


    Powered by Savane 3.1-cleanup1