#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):

 Then I strongly prefer to always raise an error in this situation. This
 requires changes to `LinearFunction` (a class that is I think only used in
 the context of `MixedIntegerLinearProgram`), so that it remembers the MIP
 that it relates to.

 The mapping from MIP variables (and their indexed components) to integer
 indices (designating backend columns) is determined dynamically, adding a
 backend column when a MIP variable component is accessed.
 Because of this there's simply no good way to write correct code that
 interchanges MIP variables, or to use `LinearFunction`s directly, between
 two `MixedIntegerLinearProgram`s.

--
Ticket URL: <http://trac.sagemath.org/ticket/19523#comment:11>
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.

Reply via email to