bugGNU Octave - Bugs: bug #52829, "qp" constraint...

 
 

bug #52829: "qp" constraint "A_lb <= A_in*x <= A_ub" miss the "x" after "A_in" in PDF document

Submitter:  None
Submitted:  Sun 07 Jan 2018 12:18:15 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.2.1
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 08 Jan 2018 07:32:36 PM UTC, comment #3: 

Okay, I applied the diff and separately clarified the language around the constraint inputs to qp.  See http://hg.savannah.gnu.org/hgweb/octave/rev/a3a263a26aab.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Mon 08 Jan 2018 02:04:44 AM UTC, comment #2: 

I have used this function in Octave, the behavior is consistent with the plain text docstring "A_lb <= A_in*x <= A_ub" i.e. A_lb and A_ub are vectors while A_in is matrix.

But I don't have Matlab, so I don't know the behavior in Matlab.

Anonymous
Sun 07 Jan 2018 04:36:34 PM UTC, comment #1: 

I think something more is wrong here.  It can't be the case that


A_lb <= A_in*x <= A_ub


Because A_lb and A_ub are matrices while the multiplication


A_in*x


is a vector.

I don't know how closely Octave follows Matlab's quadprog (https://www.mathworks.com/help/optim/ug/quadprog.html), but they do not offer the extra options A_lb, A_ub.


Rik <rik5>
Group administrator
Sun 07 Jan 2018 12:18:15 PM UTC, original submission:  

The plain text document is OK.  Only the PDF document has this problem.


diff -ur a/doc/interpreter/optim.txi b/doc/interpreter/optim.txi
--- a/doc/interpreter/optim.txi
+++ b/doc/interpreter/optim.txi
@@ -89,7 +89,7 @@
 subject to
 @tex
 $$
- Ax = b \qquad lb \leq x \leq ub \qquad A_{lb} \leq A_{in} \leq A_{ub}
+ A x = b \qquad lb \leq x \leq ub \qquad A_{lb} \leq A_{in} x \leq A_{ub}
 $$
 @end tex
 @ifnottex
diff -ur a/scripts/optimization/qp.m b/scripts/optimization/qp.m
--- a/scripts/optimization/qp.m
+++ b/scripts/optimization/qp.m
@@ -45,7 +45,7 @@
 ## subject to
 ## @tex
 ## $$
-##  Ax = b \qquad lb \leq x \leq ub \qquad A_{lb} \leq A_{in} \leq A_{ub}
+##  A x = b \qquad lb \leq x \leq ub \qquad A_{lb} \leq A_{in} x \leq A_{ub}
 ## $$
 ## @end tex
 ## @ifnottex


Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 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 group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-01-08 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code