#19523: Adding constraints for the wrong MILP crashes Sage
--------------------------------------+-------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.10
Component: linear programming | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: #19525 | Stopgaps:
--------------------------------------+-------------------------
Comment (by mkoeppe):
While `MIPVariable` objects know which MIP they belong to,
their "components" gotten by `p[0]` etc. are elements of
`LinearFunctionsParent(base_ring)`, and do not remember their MIP (nor
even their name).
So with the current design it does not seem possible to catch the error of
adding constraints to the wrong MIP.
So unfortunately only lower-level error checking, catching out-of-bounds
indices, is possible.
--
Ticket URL: <http://trac.sagemath.org/ticket/19523#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.