#11607: read constraints from linear program
----------------------------------+-----------------------------------------
Reporter: john_perry | Owner: ncohen
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7.2
Component: linear programming | Keywords: sd32
Work_issues: | Upstream: N/A
Reviewer: | Author: john_perry
Merged: | Dependencies:
----------------------------------+-----------------------------------------
Comment(by ncohen):
Hello again John !!!
I'm sorry for the time it takes to merge these patches, I'll be defending
my PhD next month and I am crushed under the weight of the "urgent things"
that should have been done already.
I read your patch again, and wondered at the terminology : "contraints" is
used at some places, "row" at others. because I often mistake a row for a
column I double-checked, but anyway your ``constraints`` method uses the
``row`` methods, so they are indeed returning the information on the
constraints only, and not the variables as I had thought for a minute
`:-)`
So, the thing is : what about having just one method ``constraints`` to do
all the work ?
* ``constraints()`` would return all the constraints as a list, as it does
now
* ``constraints(indices = [1,2,3])`` would return constraints 1,2,3 as a
list
* ``constraints(indices = 1)`` would return only one constraint, as the
triples you used before. This way, all the job is done by one function, we
stick to the terminology "constraints", and all is well under the sun ?
`:-)`
It is one of the nice features of Python : having no types let us play a
bit `:-)`
Tell me what you think of it. I'll try to make my next reviews muuuuch
shorter !
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11607#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.