#7311: Improve the add_constraint method from MixedIntegerLinearProgram
-------------------------+--------------------------------------------------
Reporter: ncohen | Owner: jkantor
Type: defect | Status: needs_review
Priority: critical | Milestone: sage-4.3.4
Component: numerical | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------+--------------------------------------------------
Comment(by ncohen):
Hello !!!!
First, this new patch contains first my file trac_7311.patch, along with
your corrections from trac_7311_review-abm.patch (and my thanks for your
time!).
# (we talked about this together, but for the completeness of this
ticket...). The names for Variables and Constraints are totally "useless"
at the moment. Well, they can be useful only when one is trying to export
a MixedIntegerLinearProgram object to a .mps or a .lp file using the
methods write_mps and write_lp. This way, anyone can export the program
and try to solve it using a different solver, as these files are standard
types to encode a LP, and clearly having names in such a file instead of
having variables like x1 x2 x3, .... and constraints like c1 c2 c3, ...
can help at some point :-)
Besides, I have not lost hope of touching the .show() method so that it
would use the names of these variables/constraints when the user wants to
see his LP.
# It is dangerous. And it is a mistake :-)
# I thought the documentation from __init__ appeared when typing
MixedIntegerLinearProgram? .... A bit silly not to have noticed it until
now.... You're perfectly right ! I copied the documentation from __init__
several lines above and added a few lines to explain what the class does.
It is likely no one but developpers will ever get interested in this
class, as it does not appear when using LP.
And here is the new version of the patch :-)
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7311#comment:19>
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.