[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36015] unexpected sqp error
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #36015] unexpected sqp error |
Date: |
Sun, 12 Feb 2017 15:39:55 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8 |
Update of bug #36015 (project octave):
Item Group: Incorrect Result => Regression
Status: Fixed => Need Info
Open/Closed: Closed => Open
_______________________________________________________
Follow-up Comment #4:
I came across a bug introduced by Lacklan's changeset.
I'm attaching a simple script that triggers the error (something to do with
the values of the upper bounds requiring an equality constraint).
I'm not familiar with glpk.m, qp.m, and sqp.m, but reversing the qp.m portion
of Lacklan's changeset fixed the problem for me.
diff --git a/scripts/optimization/qp.m b/scripts/optimization/qp.m
--- a/scripts/optimization/qp.m
+++ b/scripts/optimization/qp.m
@@ -373,8 +373,8 @@
Atmp = [Ain, gamma];
btmp = bin;
endif
- ctmp = [zeros(n-n_eq, 1); ones(n_in, 1)];
- lb = [-Inf(n-n_eq,1); zeros(n_in,1)];
+ ctmp = [zeros(n, 1); ones(n_in, 1)];
+ lb = [-Inf(n,1); zeros(n_in,1)];
ub = [];
ctype = repmat ("L", n_in, 1);
[P, dummy, status] = glpk (ctmp, Atmp, btmp, lb, ub, ctype);
I'm re-opening and marking it as a regression.
Lacklan, any insight into this?
(file #39742)
_______________________________________________________
Additional Item Attachment:
File name: test_qp.m Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36015>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36015] unexpected sqp error,
Ben Abbott <=