#12091: chained inequalities bug in add_constraint to MixedIntegerLinearProgram
--------------------------------------+-------------------------------------
Reporter: dimpase | Owner: ncohen
Type: defect | Status: new
Priority: major | Milestone: sage-5.4
Component: linear programming | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
--------------------------------------+-------------------------------------
Comment (by dimpase):
Replying to [comment:26 vbraun]:
> Patch fixes chained constraints:
indeed! What about more convoluted cases:
{{{
sage: b[0] <= 555/11*b[1] >= 2
2 <= x_0 <= 555/11*x_1
sage: b[0] <= 555/11*b[1] == 2
555/11*x_1 == 2
}}}
the 1st one ought to become 2 inequalities, and the 2nd an inequality and
an equation.
In both cases, the behaviour is rather strange...
Well, I don't know how easy is to make these work, or at least throw an
error.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12091#comment:27>
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.